Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38746

how to add socks proxy feature to script based on requests module?

X-Received by 10.224.190.193 with SMTP id dj1mr11035597qab.6.1360673285763; Tue, 12 Feb 2013 04:48:05 -0800 (PST)
X-Received by 10.49.58.238 with SMTP id u14mr1202020qeq.13.1360673285729; Tue, 12 Feb 2013 04:48:05 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!p13no11470735qai.0!news-out.google.com!k2ni24985qap.0!nntp.google.com!p13no11470730qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Tue, 12 Feb 2013 04:48:05 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=77.254.83.59; posting-account=SsjJvwoAAAAbGEB6oRibqD8UwTelug2W
NNTP-Posting-Host 77.254.83.59
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <fe3b196c-eb40-4f52-9aa1-cfc91f7f99c3@googlegroups.com> (permalink)
Subject how to add socks proxy feature to script based on requests module?
From xliiv <tymoteusz.jankowski@gmail.com>
Injection-Date Tue, 12 Feb 2013 12:48:05 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.lang.python:38746

Show key headers only | View raw


Hi!

I've go a script which uses python requests (http://docs.python-requests.org/en/latest/).

I need to add to it socks proxy feature.

AFAIK requests doesn't support socks proxy (http://stackoverflow.com/questions/12601316/how-to-make-python-requests-work-via-socks-proxy) so i was about to switch requests module to human_curl (http://stackoverflow.com/questions/8482896/making-http-requests-via-python-requests-module-not-working-via-proxy-where-curl).
Then it turned out that human_curl doesn't support "requests module's" session.

Ok, what can You recommend me to do? I need the best solution for adding socks proxy feature to script (based on requests module).

if nothing better is recommended i'll clone "requests' module" session feature in human_curl.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

how to add socks proxy feature to script based on requests module? xliiv <tymoteusz.jankowski@gmail.com> - 2013-02-12 04:48 -0800

csiph-web