Ran below code and got error as mentioned below
version used :- fake-useragent==0.1.11
`
import requests
from fake_useragent import UserAgent
from bs4 import BeautifulSoup
ua = UserAgent()
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:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 1318, in do_open
encode_chunked=req.has_header(‘Transfer-encoding’))
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1026, in _send_output
self.send(msg)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 964, in send
self.connect()
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File «C:UsersmeuserAnaconda3envsenv001libsocket.py», line 724, in create_connection
raise err
File «C:UsersmeuserAnaconda3envsenv001libsocket.py», line 713, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 67, in get
context=context,
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 223, in urlopen
return opener.open(url, data, timeout)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 526, in open
response = self._open(req, data)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 544, in _open
‘_open’, req)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 504, in _call_chain
result = func(*args)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 1320, in do_open
raise URLError(err)
urllib.error.URLError:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 166, in load
verify_ssl=verify_ssl,
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 122, in get_browser_versions
verify_ssl=verify_ssl,
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 84, in get
raise FakeUserAgentError(‘Maximum amount of retries reached’)
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
`
Содержание
- Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11 #100
- Comments
- Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11 #100
- Comments
- Python 3.7 maximum amount of retries reached #81
- Comments
- Русские Блоги
- fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
- Fake-useragent library error #443
- Comments
- Description of Issue
Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11 #100
Ran below code and got error as mentioned below
version used :- fake-useragent==0.1.11
`
import requests
from fake_useragent import UserAgent
from bs4 import BeautifulSoup
ua = UserAgent()
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:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 1318, in do_open
encode_chunked=req.has_header(‘Transfer-encoding’))
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1026, in _send_output
self.send(msg)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 964, in send
self.connect()
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File «C:UsersmeuserAnaconda3envsenv001libsocket.py», line 724, in create_connection
raise err
File «C:UsersmeuserAnaconda3envsenv001libsocket.py», line 713, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 67, in get
context=context,
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 223, in urlopen
return opener.open(url, data, timeout)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 526, in open
response = self._open(req, data)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 544, in _open
‘_open’, req)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 504, in _call_chain
result = func(*args)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 1320, in do_open
raise URLError(err)
urllib.error.URLError:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 166, in load
verify_ssl=verify_ssl,
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 122, in get_browser_versions
verify_ssl=verify_ssl,
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 84, in get
raise FakeUserAgentError(‘Maximum amount of retries reached’)
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
`
The text was updated successfully, but these errors were encountered:
Источник
Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11 #100
Ran below code and got error as mentioned below
version used :- fake-useragent==0.1.11
`
import requests
from fake_useragent import UserAgent
from bs4 import BeautifulSoup
ua = UserAgent()
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:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 1318, in do_open
encode_chunked=req.has_header(‘Transfer-encoding’))
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 1026, in _send_output
self.send(msg)
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 964, in send
self.connect()
File «C:UsersmeuserAnaconda3envsenv001libhttpclient.py», line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File «C:UsersmeuserAnaconda3envsenv001libsocket.py», line 724, in create_connection
raise err
File «C:UsersmeuserAnaconda3envsenv001libsocket.py», line 713, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 67, in get
context=context,
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 223, in urlopen
return opener.open(url, data, timeout)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 526, in open
response = self._open(req, data)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 544, in _open
‘_open’, req)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 504, in _call_chain
result = func(*args)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File «C:UsersmeuserAnaconda3envsenv001liburllibrequest.py», line 1320, in do_open
raise URLError(err)
urllib.error.URLError:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 166, in load
verify_ssl=verify_ssl,
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 122, in get_browser_versions
verify_ssl=verify_ssl,
File «C:UsersmeuserAnaconda3envsenv001libsite-packagesfake_useragentutils.py», line 84, in get
raise FakeUserAgentError(‘Maximum amount of retries reached’)
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
`
The text was updated successfully, but these errors were encountered:
Источник
Python 3.7 maximum amount of retries reached #81
I’d made an image download crawler few months ago, which worked very well.
But when I try to execute my python file it shows up an error message as follows:
‘fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached’
Any help would be extremely appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
I got the same problem
I know this doesn’t fix the issue. but it will get fake-useragent to work. When initializing the UserAgent module use this.
ua = UserAgent(verify_ssl=False)
ua_file = os.getcwd() + ‘/commons/fake_useragent.json’
ua = UserAgent(path=ua_file, verify_ssl=False, use_cache_server=False, cache=False)
python3.7 not work. help me
This seems to have been fixed in v0.1.11 (9fb2ecb). The commit redirected the failing request from cloudfront server to heroku (and now no longer fails).
So upgrade to latest version (if you were on
This seems to have been fixed in v0.1.11 (9fb2ecb). The commit redirected the failing request from cloudfront server to heroku (and now no longer fails).
So upgrade to latest version (if you were on
same problem
python: 3.5
fake-useragent : 0.1.11
use_cache_server=False,cache=False,verify_ssl=False
All three methods have been tried, but they are useless.
Who has a solution?
thanks!
use_cache_server=False,cache=False,verify_ssl=False
no work
Python 3.7
just use this
ua = UserAgent(use_cache_server=False)
work fine for me
just use this
ua = UserAgent(use_cache_server=False)
work fine for me
Full backtrace of the current problem
Same error also for me and disable cache server didn’t fixed.
Same error! the solutions don’t work for me!
Same error for me too and disabling cache server did not fix the problem. I use fake_useragent-0.1.11
Источник
Русские Блоги
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
2019.5.17 Все обновлено, linux и windows
Я установил fake-useragent на новый компьютер (windows), но он не работает должным образом, и появляется ошибка типа вопроса
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
Затем, обратившись к связанным сообщениям, я не обнаружил, что это могло бы решить мою проблему. Есть одно, которое, я думаю, должно быть связано. Но я не мог получить доступ к адресу json-файла в блоге даже с помощью лестницы.
Тогда попробуйте сами:
1. Во-первых, моя проблема в том, что об ошибке сообщили без подвешивания лестницы, поэтому первым делом я повесил мою простую маленькую лестницу, сказав, что это проба в течение 7 дней, но я зря пользуюсь проституцией. Позже, это относительно просто использовать, хорошо проверить небольшой файл на веб-странице;
2. Повесив трубку, запустите код и убедитесь, что он работает нормально;
3. Отключите запущенную программу vpn и обнаружите, что она все еще может нормально работать, поэтому я предполагаю, что файл, упомянутый в вышеупомянутом сообщении, был загружен, когда работала лестница, и был указан конкретный
Лестничная ссылка: https://pan.baidu.com/s/14T9cqC2pXAs0LuyeOgKN1A Код извлечения: 2hvw
Продолжайте читать, и полное решение будет предоставлено позже:
Дополните полное сообщение об ошибке (linux), ( 2019.5.17 19:21 Обновлено ), см. конкретный метод ниже,
Обнаружен кеш fake_useragent_0.1.11.json Проблема (последняя версия), но я не могу загрузить этот файл json с помощью метода wget или браузера.
Просто поместите этот файл кеша в каталог кеша Windows или Linux:
1. Получите временный каталог: (применимо как к Linux, так и к Windows)
2. Поместите fake_useragent_0.1.11.json во временный каталог linux или windows выше (здесь я предоставлю ссылку на файл json, который я успешно запустил:
https://pan.baidu.com/s/1_Qv1LGBSjO2bnF4ocMqhwQ Код извлечения: 2hpu)
На данный момент ошибка поддельного агента пользователя моих локальных окон, локального Linux и удаленных серверов Linux устранена. Добро пожаловать в общение.
Источник
Fake-useragent library error #443
Make sure you’ve checked the following:
- [+] Python version is 3.6;
- [+] Updated Twint with pip3 install —upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint ;
- [+] I have searched the issues and there are no duplicates of this issue/question/request.
Description of Issue
I’m working on linux enviroment with python and twint and I use twint as a python module. Today, I realized twint module gives me an error, I updated everyting and double-check but gave me nothing. Output of the error is below, [Django,Gunicorn,Nginx these are that I used in my project.]
The text was updated successfully, but these errors were encountered:
fake-useragent gets a list of user-agent strings from w3schools, specifically the url https://www.w3schools.com/browsers/default.asp
This url still works and it seems this error happens only part of the time, when 2 requests to w3schools fails — hence ‘Maximum amount of retries reached’.
Perhaps a quick fix is to allow more retries before raising the error? say, 5? This could be achieved by increasing the HTTP_RETRIES variable in the settings.py file for fake-useragent. I’m going to try this fix and see if it helps. Will post back.
Firstly,thanks for your comment. Maybe we can get the list of user-agent strings to our local thus we can eliminate this error? Am I missing something? Why we are keeping request to live website to fetch user-agents every time?
Perhaps a quick fix is to allow more retries before raising the error? say, 5? This could be achieved by increasing the HTTP_RETRIES variable in the settings.py file for fake-useragent.
I updated HTTP_RETRIES variable’s value as a 10 but error is still exist on my local. I can’t do any query right now using twint module.
Why we are keeping request to live website to fetch user-agents every time?
I would guess we do this to get an up-to-date set of user strings (including their usage statistics) to better mimic a non-automated request.
Maybe we can get the list of user-agent strings to our local thus we can eliminate this error?
We do have a list of user-agent strings stored locally, and indeed fake-useragent can obtain a list from a cache server maintained by the author instead of going to the w3schools website. So there’s a couple ways we could avoid this error.
If you need quick fix now then you can edit the twint file get.py and replace:
with the following code:
This will avoid querying a website to obtain a list of user-agent strings. However, this list is not updated frequently and makes it more likely for your traffic to be flagged as automated and blocked. So use with caution.
Better fixes are possible. I’ll play with the fake-useragent and twint modules today and try to find a better fix.
Источник
2019.5.17 Все обновлено, linux и windows
Я установил fake-useragent на новый компьютер (windows), но он не работает должным образом, и появляется ошибка типа вопроса
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
Затем, обратившись к связанным сообщениям, я не обнаружил, что это могло бы решить мою проблему. Есть одно, которое, я думаю, должно быть связано. Но я не мог получить доступ к адресу json-файла в блоге даже с помощью лестницы.
адрес блога:https://blog.csdn.net/weixin_33893473/article/details/86031932
Тогда попробуйте сами:
1. Во-первых, моя проблема в том, что об ошибке сообщили без подвешивания лестницы, поэтому первым делом я повесил мою простую маленькую лестницу, сказав, что это проба в течение 7 дней, но я зря пользуюсь проституцией. Позже, это относительно просто использовать, хорошо проверить небольшой файл на веб-странице;
2. Повесив трубку, запустите код и убедитесь, что он работает нормально;
3. Отключите запущенную программу vpn и обнаружите, что она все еще может нормально работать, поэтому я предполагаю, что файл, упомянутый в вышеупомянутом сообщении, был загружен, когда работала лестница, и был указан конкретный
позиция.
Лестничная ссылка: https://pan.baidu.com/s/14T9cqC2pXAs0LuyeOgKN1A Код извлечения: 2hvw
Продолжайте читать, и полное решение будет предоставлено позже:
Дополните полное сообщение об ошибке (linux), (2019.5.17 19:21 Обновлено), см. конкретный метод ниже,
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 "/usr/local/python3/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/local/python3/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/python3/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/python3/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/python3/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/local/python3/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/usr/local/python3/lib/python3.6/http/client.py", line 1392, in connect
super().connect()
File "/usr/local/python3/lib/python3.6/http/client.py", line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/local/python3/lib/python3.6/socket.py", line 724, in create_connection
raise err
File "/usr/local/python3/lib/python3.6/socket.py", line 713, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.6/site-packages/fake_useragent/utils.py", line 67, in get
context=context,
File "/usr/local/python3/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/python3/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "/usr/local/python3/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "/usr/local/python3/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/local/python3/lib/python3.6/urllib/request.py", line 1361, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/local/python3/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error timed out>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.6/site-packages/fake_useragent/utils.py", line 154, in load
for item in get_browsers(verify_ssl=verify_ssl):
File "/usr/local/python3/lib/python3.6/site-packages/fake_useragent/utils.py", line 97, in get_browsers
html = get(settings.BROWSERS_STATS_PAGE, verify_ssl=verify_ssl)
File "/usr/local/python3/lib/python3.6/site-packages/fake_useragent/utils.py", line 84, in get
raise FakeUserAgentError('Maximum amount of retries reached')
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
————————————————— —Разделяющая линия———————————————
После ссылки:https://blog.csdn.net/yilovexing/article/details/89044980
Обнаружен кешfake_useragent_0.1.11.jsonПроблема (последняя версия), но я не могу загрузить этот файл json с помощью метода wget или браузера.
Просто поместите этот файл кеша в каталог кеша Windows или Linux:
1. Получите временный каталог: (применимо как к Linux, так и к Windows)
#windows
import tempfile
a = tempfile.gettempdir()
print(a)
C:UsersSHAOOP~1AppDataLocalTemp
[Finished in 0.2s]
#linux
[[email protected] ~]# 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 или windows выше (здесь я предоставлю ссылку на файл json, который я успешно запустил:
https://pan.baidu.com/s/1_Qv1LGBSjO2bnF4ocMqhwQ Код извлечения: 2hpu)
На данный момент ошибка поддельного агента пользователя моих локальных окон, локального Linux и удаленных серверов Linux устранена. Добро пожаловать в общение.
from fake_useragent import UserAgent
ua = UserAgent()
Error occurred during loading data. Trying to use cache server file https://useragent.melroy.org/cache.json
Traceback (most recent call last):
File "/home/leonardo/Github/montecarlo-api/env/lib/python3.10/site-packages/fake_useragent/utils.py", line 139, in load
browsers_dict[browser_name] = get_browser_user_agents(
File "/home/leonardo/Github/montecarlo-api/env/lib/python3.10/site-packages/fake_useragent/utils.py", line 123, in get_browser_user_agents
raise FakeUserAgentError(
fake_useragent.errors.FakeUserAgentError: No browser user-agent strings found for browser: chrome
Traceback (most recent call last):
File "/home/leonardo/Github/montecarlo-api/env/lib/python3.10/site-packages/fake_useragent/utils.py", line 139, in load
browsers_dict[browser_name] = get_browser_user_agents(
File "/home/leonardo/Github/montecarlo-api/env/lib/python3.10/site-packages/fake_useragent/utils.py", line 123, in get_browser_user_agents
raise FakeUserAgentError(
fake_useragent.errors.FakeUserAgentError: No browser user-agent strings found for browser: chrome
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output
self.send(msg)
File "/usr/lib/python3.10/http/client.py", line 975, in send
self.connect()
File "/usr/lib/python3.10/http/client.py", line 1447, in connect
super().connect()
File "/usr/lib/python3.10/http/client.py", line 941, in connect
self.sock = self._create_connection(
File "/usr/lib/python3.10/socket.py", line 845, in create_connection
raise err
File "/usr/lib/python3.10/socket.py", line 833, in create_connection
sock.connect(sa)
TimeoutError: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/leonardo/Github/montecarlo-api/env/lib/python3.10/site-packages/fake_useragent/utils.py", line 64, in get
urlopen(
File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error timed out>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/leonardo/Github/montecarlo-api/env/lib/python3.10/site-packages/fake_useragent/fake.py", line 64, in __init__
self.load()
File "/home/leonardo/Github/montecarlo-api/env/lib/python3.10/site-packages/fake_useragent/fake.py", line 70, in load
self.data_browsers = load_cached(
File "/home/leonardo/Github/montecarlo-api/env/lib/python3.10/site-packages/fake_useragent/utils.py", line 209, in load_cached
update(path, browsers, use_cache_server=use_cache_server, verify_ssl=verify_ssl)
File "/home/leonardo/Github/montecarlo-api/env/lib/python3.10/site-packages/fake_useragent/utils.py", line 203, in update
path, load(browsers, use_cache_server=use_cache_server, verify_ssl=verify_ssl)
File "/home/leonardo/Github/montecarlo-api/env/lib/python3.10/site-packages/fake_useragent/utils.py", line 154, in load
jsonLines = get(
File "/home/leonardo/Github/montecarlo-api/env/lib/python3.10/site-packages/fake_useragent/utils.py", line 87, in get
raise FakeUserAgentError("Maximum amount of retries reached")
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
Error occurred during loading data. Trying to use cache server http://d2g6u4gh6d9rq0.cloudfront.net/browsers/fake_useragent_0.1.10.json
Traceback (most recent call last):
File "/usr/lib64/python3.4/urllib/request.py", line 1183, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib64/python3.4/http/client.py", line 1137, in request
self._send_request(method, url, body, headers)
File "/usr/lib64/python3.4/http/client.py", line 1182, in _send_request
self.endheaders(body)
File "/usr/lib64/python3.4/http/client.py", line 1133, in endheaders
self._send_output(message_body)
File "/usr/lib64/python3.4/http/client.py", line 963, in _send_output
self.send(msg)
File "/usr/lib64/python3.4/http/client.py", line 898, in send
self.connect()
File "/usr/lib64/python3.4/http/client.py", line 1279, in connect
super().connect()
File "/usr/lib64/python3.4/http/client.py", line 871, in connect
self.timeout, self.source_address)
File "/usr/lib64/python3.4/socket.py", line 516, in create_connection
raise err
File "/usr/lib64/python3.4/socket.py", line 507, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/fake_useragent/utils.py", line 67, in get
context=context,
File "/usr/lib64/python3.4/urllib/request.py", line 161, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python3.4/urllib/request.py", line 464, in open
response = self._open(req, data)
File "/usr/lib64/python3.4/urllib/request.py", line 482, in _open
"_open", req)
File "/usr/lib64/python3.4/urllib/request.py", line 442, in _call_chain
result = func(*args)
File "/usr/lib64/python3.4/urllib/request.py", line 1226, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/lib64/python3.4/urllib/request.py", line 1185, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error timed out>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/fake_useragent/utils.py", line 154, in load
for item in get_browsers(verify_ssl=verify_ssl):
File "/usr/lib/python3.4/site-packages/fake_useragent/utils.py", line 97, in get_browsers
html = get(settings.BROWSERS_STATS_PAGE, verify_ssl=verify_ssl)
File "/usr/lib/python3.4/site-packages/fake_useragent/utils.py", line 84, in get
raise FakeUserAgentError("Maximum amount of retries reached")
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached