fake_useragent_0.1.11.json
python运行出现"fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached"解决方案需要的缓存文件 1.获取临时目录: [root@hwcentos ~]# python Python 3.6.5 (default, Mar 20 2019, 21:55:20) [GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tempfile >>> tempfile.gettempdir() '/tmp' 2.将 fake_useragent_0.1.11.json 放入上述linux 的临时目录(/tmp)
下载地址
用户评论