Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jingdong爬虫失败 #2

Open
areaChun opened this issue Dec 25, 2024 · 0 comments
Open

jingdong爬虫失败 #2

areaChun opened this issue Dec 25, 2024 · 0 comments

Comments

@areaChun
Copy link

/anaconda3/envs/py37-pt19/lib/python3.7/site-packages/urllib3/connectionpool.py:1052: InsecureRequestWarning: Unverified HTTPS request is being made to host 'search.jd.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
/anaconda3/envs/py37-pt19/lib/python3.7/site-packages/urllib3/connectionpool.py:1052: InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.jd.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
search_req_bf:
Traceback (most recent call last):
File "main.py", line 245, in
run(args.dir, args.keyword, args.num)
File "main.py", line 219, in run
goods_urls = search_goods(keyword, pages)
File "main.py", line 78, in search_goods
log_id = re.findall("log_id:'(.*)',", search_req.text)[0]
IndexError: list index out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant