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 "D:\python\lib\site-packages\fake_useragent\utils.py", line 154, in load
for item in get_browsers(verify_ssl=verify_ssl):
File "D:\python\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
Process finished with exit code 1
引入path参数,指定本地文件的位置
UserAgent(path=r'./fake_useragent.json').Chrome
标签:use,loading,0.1,browsers,fake,useragent
From: https://www.cnblogs.com/Gimm/p/18116271