Skip to content

jingdong爬虫失败 #2

Description

@areaChun

/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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions