Answer the question
In order to leave comments, you need to log in
Python requests exits in except with response code 200 (OK)?
Hello.
I send requests through python
requests
using a proxy, it returns a status of 200 (OK), but some requests go to except
.
Code example:
import requests
try:
r = requests.get(url, proxies=proxies, timeout=5)
except:
print(r.status_code)
except
with a status code of 200 (OK), the request does not reach the requested resource. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question