Answer the question
In order to leave comments, you need to log in
Python nowhere not friendly with requests?
I decided to transfer the finished bot from the PC to the hosting. At first, hosting was stupid with TeleBot. And now he's stupid with Requests.
Error from terminal:
File "./SearchGabeStore.py", line 11, in parse
response = requests.get(url,headers=HEADERS)
File "/usr/lib/python3.8/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3.8/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.8/site-packages/requests/adapters.py", line 510, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='gabestore.ru', port=443): Max retries exceeded with url: /catalog?Pro
ductFilter%5Bsearch%5D=PUBG (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))
Answer the question
In order to leave comments, you need to log in
Already answered here today:
Urllib.error.HTTPError: HTTP Error 403: Forbidden on the server, how to get around?
Learning English will help you a lot.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question