0.1.1
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
# 0.1.1
|
||||||
|
- 修正店铺信息
|
||||||
# 0.1.0
|
# 0.1.0
|
||||||
- 修复cloudflare验证问题
|
- 修复cloudflare验证问题
|
||||||
# 0.0.9
|
# 0.0.9
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ def main():
|
|||||||
列顺序:`Name,Address,City`
|
列顺序:`Name,Address,City`
|
||||||
"""
|
"""
|
||||||
api = Api()
|
api = Api()
|
||||||
csv_path = os.path.join(os.path.dirname(__file__), 'bakeries.csv')
|
csv_path = os.path.join(os.path.dirname(__file__), 'data.csv')
|
||||||
if not os.path.exists(csv_path):
|
if not os.path.exists(csv_path):
|
||||||
logger.error(f'CSV 文件不存在: {csv_path}')
|
logger.error(f'CSV 文件不存在: {csv_path}')
|
||||||
return
|
return
|
||||||
@@ -78,7 +78,7 @@ def main():
|
|||||||
if len(row) < 3:
|
if len(row) < 3:
|
||||||
logger.warning(f'行列数不足,跳过: {row}')
|
logger.warning(f'行列数不足,跳过: {row}')
|
||||||
continue
|
continue
|
||||||
shop_name, street, city = row[0], row[1], row[2]
|
shop_name, street, city = row[1], row[2], row[0]
|
||||||
if ' (city)' in city:
|
if ' (city)' in city:
|
||||||
city = city.replace(' (city)', '')
|
city = city.replace(' (city)', '')
|
||||||
if 'Quebec' in city:
|
if 'Quebec' in city:
|
||||||
@@ -96,6 +96,6 @@ def main():
|
|||||||
# logger.info(shop)
|
# logger.info(shop)
|
||||||
|
|
||||||
# if __name__ == '__main__':
|
# if __name__ == '__main__':
|
||||||
# main2()
|
# main()
|
||||||
|
|
||||||
api = Api()
|
api = Api()
|
||||||
@@ -122,7 +122,7 @@ class Auto:
|
|||||||
continue_button.click()
|
continue_button.click()
|
||||||
logger.debug("点击Continue按钮成功")
|
logger.debug("点击Continue按钮成功")
|
||||||
self.tab.wait(1.5)
|
self.tab.wait(1.5)
|
||||||
bol = self.tab.ele('t:div@text():Loading...', timeout=1)
|
bol = self.tab.ele('@text():Loading', timeout=1)
|
||||||
if bol:
|
if bol:
|
||||||
logger.debug("Loading...")
|
logger.debug("Loading...")
|
||||||
if bl:
|
if bl:
|
||||||
|
|||||||
Reference in New Issue
Block a user