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


Groups > comp.lang.python > #38746 > unrolled thread

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

Started byxliiv <tymoteusz.jankowski@gmail.com>
First post2013-02-12 04:48 -0800
Last post2013-02-12 04:48 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

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

Fromxliiv <tymoteusz.jankowski@gmail.com>
Date2013-02-12 04:48 -0800
Subjecthow to add socks proxy feature to script based on requests module?
Message-ID<fe3b196c-eb40-4f52-9aa1-cfc91f7f99c3@googlegroups.com>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web