Answer the question
In order to leave comments, you need to log in
Is it possible to set the region for which the URL will be opened in Requests?
The solution is of interest in relation to the directory . I am using the Requests library .
After a request is made, the resulting content changes periodically. That corresponds to my city, then another city.
import requests
r = requests.get('http://www.svyaznoy.ru/catalog/flash/230')
Answer the question
In order to leave comments, you need to log in
1) set the city
2) look at the cookies for it
3) use cookies in the request
See how the city is saved and simulate it in requests. Maybe it's a cookie, maybe (but unlikely) a snapshot of request.META, maybe something else.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question