错误日志:
流程执行失败: Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11
Traceback (most recent call last):
File "C:\Users\jm014992\AppData\Local\ShadowBot\users\40305843955933185\apps\6cf78647-ff2b-4c35-8e96-1ef3ceb98677\xbot_extensions\activity_5a867757\multi_download_img.py", line 35, in download_image
urllib.request.urlretrieve(image_url, os.path.join(destination, image_name))
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 510, in open
req = Request(fullurl, data)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 328, in __init__
self.full_url = url
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 354, in full_url
self._parse()
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 383, in _parse
raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: 'h'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\jm014992\AppData\Local\ShadowBot\users\40305843955933185\apps\6cf78647-ff2b-4c35-8e96-1ef3ceb98677\venv\lib\site-packages\fake_useragent\utils.py", line 154, in load
for item in get_browsers(verify_ssl=verify_ssl):
File "C:\Users\jm014992\AppData\Local\ShadowBot\users\40305843955933185\apps\6cf78647-ff2b-4c35-8e96-1ef3ceb98677\venv\lib\site-packages\fake_useragent\utils.py", line 99, in get_browsers
html = html.split('<table class="w3-table-all notranslate">')[1]
IndexError: list index out of range
Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11
Traceback (most recent call last):
File "C:\Users\jm014992\AppData\Local\ShadowBot\users\40305843955933185\apps\6cf78647-ff2b-4c35-8e96-1ef3ceb98677\xbot_extensions\activity_5a867757\multi_download_img.py", line 35, in download_image
urllib.request.urlretrieve(image_url, os.path.join(destination, image_name))
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 510, in open
req = Request(fullurl, data)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 328, in __init__
self.full_url = url
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 354, in full_url
self._parse()
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.20\python\lib\urllib\request.py", line 383, in _parse
raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: 'p'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\jm014992\AppData\Local\ShadowBot\users\40305843955933185\apps\6cf78647-ff2b-4c35-8e96-1ef3ceb98677\venv\lib\site-packages\fake_useragent\utils.py", line 154, in load
for item in get_browsers(verify_ssl=verify_ssl):
File "C:\Users\jm014992\AppData\Local\ShadowBot\users\40305843955933185\apps\6cf78647-ff2b-4c35-8e96-1ef3ceb98677\venv\lib\site-packages\fake_useragent\utils.py", line 99, in get_browsers
html = html.split('<table class="w3-table-all notranslate">')[1]
IndexError: list index out of range