解决fake-useragent Maximum amount of retries reached的方法
作者:互联网
下载:
https://fake-useragent.herokuapp.com/browsers/0.1.11
另存为:
fake_useragent.json,将json文件保存在代码所在的文件夹下;
之后在UserAgent对应的部分加入如下参数:
location = os.getcwd() + ‘/fake_useragent.json’
ua = fake_useragent.UserAgent(path=location).random
标签:retries,reached,Maximum,UserAgent,json,location,fake,useragent,os 来源: https://blog.csdn.net/weixin_42515907/article/details/118962171