MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / tor_fetch

Function tor_fetch

Scripts/Developer Base/Free Internet.py:705–710  ·  view source on GitHub ↗
(sess: requests.Session, method: str, url: str, *, data=None, files=None, stream=False)

Source from the content-addressed store, hash-verified

703
704
705def tor_fetch(sess: requests.Session, method: str, url: str, *, data=None, files=None, stream=False):
706 if not tor_running():
707 ok, msg = start_tor()
708 if not ok and not tor_running():
709 raise RuntimeError(msg)
710 return sess.request(method, url, data=data, files=files, timeout=max(REQUEST_TIMEOUT, 30), allow_redirects=True, stream=stream, proxies=tor_proxy_dict())
711
712
713def browser_fetch(method: str, url: str, *, data=None, files=None, stream=False):

Callers 1

browser_fetchFunction · 0.70

Calls 3

tor_runningFunction · 0.70
start_torFunction · 0.70
tor_proxy_dictFunction · 0.70

Tested by

no test coverage detected