|
@@ -71,7 +71,6 @@ def yongyi_download(dayFlag, weekFlag):
|
|
|
# s = Service(executable_path='D:/download/chromedriver119-win64/chromedriver.exe')
|
|
|
s = Service(executable_path='D:/eta/chromedriver-win64/chromedriver.exe')
|
|
|
driver = webdriver.Chrome(service=s, options=options)
|
|
|
- # driver.maximize_window()
|
|
|
driver.get('https://data.yongyizixun888.com/')
|
|
|
sleep(3)
|
|
|
|
|
@@ -96,7 +95,7 @@ def yongyi_download(dayFlag, weekFlag):
|
|
|
|
|
|
# 获取当前时间,并将其格式化为指定的形式
|
|
|
# new_dir = '/Users/xiexiaoyuan/Downloads/yongyi'
|
|
|
- new_dir = r'D:\eta\yongyi_data\yongyi'
|
|
|
+ new_dir = r'D:/eta/yongyi_data/yongyi'
|
|
|
current_time = datetime.datetime.now().strftime("%Y-%m-%d")
|
|
|
current_time_full = datetime.datetime.now().strftime("%Y年%m月%d日")
|
|
|
|
|
@@ -149,4 +148,4 @@ def yongyi_download(dayFlag, weekFlag):
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
app = __hug__.http.server()
|
|
|
- run(app=app, reloader=True, host='0.0.0.0', port=7010)
|
|
|
+ run(app=app, reloader=True, host='127.0.0.1', port=7010)
|