D
D
Danil Neskazhu2020-04-26 16:09:23
Python
Danil Neskazhu, 2020-04-26 16:09:23

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')))


Who fumbles what to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey_Dolg, 2020-04-26
@dannight0151

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.

D
Dr. Bacon, 2020-04-26
@bacon

Do not use free hosting, and if you do, then read about the restrictions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question