0.1.1
This commit is contained in:
@@ -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()
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user