This commit is contained in:
2025-11-21 09:58:05 +08:00
parent a92c41f272
commit 2ac6e536d9
3 changed files with 6 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ def main():
列顺序:`Name,Address,City`
"""
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):
logger.error(f'CSV 文件不存在: {csv_path}')
return
@@ -78,7 +78,7 @@ def main():
if len(row) < 3:
logger.warning(f'行列数不足,跳过: {row}')
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:
city = city.replace(' (city)', '')
if 'Quebec' in city:
@@ -96,6 +96,6 @@ def main():
# logger.info(shop)
# if __name__ == '__main__':
# main2()
# main()
api = Api()

View File

@@ -122,7 +122,7 @@ class Auto:
continue_button.click()
logger.debug("点击Continue按钮成功")
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:
logger.debug("Loading...")
if bl: