上传者: u014175572
|
上传时间: 2021-03-07 18:05:47
|
文件大小: 42KB
|
文件类型: 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)