Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
京
京东搜索采集自动验证
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄梓誉
京东搜索采集自动验证
Commits
2f5289b0
Commit
2f5289b0
authored
Apr 19, 2024
by
huangiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
87f54da1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
京东搜索_手动验证版.py
京东搜索_手动验证版.py
+1
-7
No files found.
京东搜索_手动验证版.py
View file @
2f5289b0
...
...
@@ -29,12 +29,6 @@ mysql_zdzs_proxy_host = '59.110.219.171'
mysql_zdzs_proxy_user
=
'zgcindex'
mysql_zdzs_proxy_password
=
'zgcprice2019'
mysql_zdzs_proxy_database
=
'zdzs_proxy'
import
config
username
=
config
.
username
# 登陆密码
password
=
config
.
password
# 偏移度加值(根据电脑分辨率情况)
offset_increase
=
0
while
True
:
...
...
@@ -82,7 +76,7 @@ def get_cookie():
driver
.
get
(
'https://passport.jd.com/uc/login'
)
# 一直循环直到登录成功位置,超过一百次就算失败。
count
=
0
while
1
:
while
driver
.
title
!=
'京东(JD.COM)-正品低价、品质保障、配送及时、轻松购物!'
:
count
=
count
+
1
print
(
f
"需要登录"
)
time
.
sleep
(
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment