mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05:00
use tor for generic providers:w
This commit is contained in:
parent
aae27f36f6
commit
65e0dd9ff7
@ -184,7 +184,13 @@ Returns a byte-string retrieved from the url provider.
|
|||||||
url = urlparse.urlunparse(parsed)
|
url = urlparse.urlunparse(parsed)
|
||||||
|
|
||||||
it = iter(req_headers)
|
it = iter(req_headers)
|
||||||
resp = requests.get(url, params=params, data=post_data, headers=dict(zip(it, it)))
|
|
||||||
|
proxies = {
|
||||||
|
"http": "http://192.168.1.11:8118",
|
||||||
|
"https": "http://192.168.1.11:8118",
|
||||||
|
}
|
||||||
|
|
||||||
|
resp = requests.get(url, params=params, data=post_data, headers=dict(zip(it, it)), proxies=proxies)
|
||||||
except requests.HTTPError, e:
|
except requests.HTTPError, e:
|
||||||
logger.log(u"HTTP error " + str(e.errno) + " while loading URL " + url, logger.WARNING)
|
logger.log(u"HTTP error " + str(e.errno) + " while loading URL " + url, logger.WARNING)
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user