Commit 2f5289b0 authored by huangiyu's avatar huangiyu

1

parent 87f54da1
...@@ -29,12 +29,6 @@ mysql_zdzs_proxy_host = '59.110.219.171' ...@@ -29,12 +29,6 @@ mysql_zdzs_proxy_host = '59.110.219.171'
mysql_zdzs_proxy_user = 'zgcindex' mysql_zdzs_proxy_user = 'zgcindex'
mysql_zdzs_proxy_password = 'zgcprice2019' mysql_zdzs_proxy_password = 'zgcprice2019'
mysql_zdzs_proxy_database = 'zdzs_proxy' mysql_zdzs_proxy_database = 'zdzs_proxy'
import config
username = config.username
# 登陆密码
password = config.password
# 偏移度加值(根据电脑分辨率情况) # 偏移度加值(根据电脑分辨率情况)
offset_increase = 0 offset_increase = 0
while True: while True:
...@@ -82,7 +76,7 @@ def get_cookie(): ...@@ -82,7 +76,7 @@ def get_cookie():
driver.get('https://passport.jd.com/uc/login') driver.get('https://passport.jd.com/uc/login')
# 一直循环直到登录成功位置,超过一百次就算失败。 # 一直循环直到登录成功位置,超过一百次就算失败。
count = 0 count = 0
while 1: while driver.title != '京东(JD.COM)-正品低价、品质保障、配送及时、轻松购物!':
count = count + 1 count = count + 1
print(f"需要登录") print(f"需要登录")
time.sleep(1) time.sleep(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment