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

报错 #2

Open
XNPY opened this issue Apr 14, 2022 · 0 comments
Open

报错 #2

XNPY opened this issue Apr 14, 2022 · 0 comments

Comments

@XNPY
Copy link

XNPY commented Apr 14, 2022

Traceback (most recent call last):
File "C:\E\ZJD\数据爬取工具\getshaper\getShp-master\getPoiShp.py", line 145, in
main()
File "C:\E\ZJD\数据爬取工具\getshaper\getShp-master\getPoiShp.py", line 141, in main
p.getPoiId()
File "C:\E\ZJD\数据爬取工具\getshaper\getShp-master\getPoiShp.py", line 53, in getPoiId
info=self.getRawData(url)
File "C:\E\ZJD\数据爬取工具\getshaper\getShp-master\getPoiShp.py", line 32, in getRawData
'User-Agent': UserAgent(use_cache_server=False).random,
File "C:\E\ZJD\数据爬取工具\getshaper\getShp-master\venv\lib\site-packages\fake_useragent\fake.py", line 69, in init
self.load()
File "C:\E\ZJD\数据爬取工具\getshaper\getShp-master\venv\lib\site-packages\fake_useragent\fake.py", line 75, in load
self.data = load_cached(
File "C:\E\ZJD\数据爬取工具\getshaper\getShp-master\venv\lib\site-packages\fake_useragent\utils.py", line 250, in load_cached
update(path, use_cache_server=use_cache_server, verify_ssl=verify_ssl)
File "C:\E\ZJD\数据爬取工具\getshaper\getShp-master\venv\lib\site-packages\fake_useragent\utils.py", line 245, in update
write(path, load(use_cache_server=use_cache_server, verify_ssl=verify_ssl))
File "C:\E\ZJD\数据爬取工具\getshaper\getShp-master\venv\lib\site-packages\fake_useragent\utils.py", line 178, in load
raise exc
File "C:\E\ZJD\数据爬取工具\getshaper\getShp-master\venv\lib\site-packages\fake_useragent\utils.py", line 154, in load
for item in get_browsers(verify_ssl=verify_ssl):
File "C:\E\ZJD\数据爬取工具\getshaper\getShp-master\venv\lib\site-packages\fake_useragent\utils.py", line 99, in get_browsers
html = html.split('

')[1]
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