By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,594 Members | 1,549 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,594 IT Pros & Developers. It's quick & easy.

Using a python web client behind a proxy (urllib and twisted.web)

P: n/a
I have been trying to make a script that will download several rss feeds
to my computer. The only problem I have is that I have to go through a
proxy.

First I tried using urllib (python 2.4, win32) but I found that the
http_proxy and no_proxy code were not implemented for win32. I have made
changes to urllib and urllib2 so that they use the proxy set in either
the windows registry or in an environment variable.

Question: How can I get this code added to the python distribution?

Then I found this script:
http://aspn.activestate.com/ASPN/Coo.../Recipe/277099

which uses twisted.web and does asynchronous requests, which is nice
when you want to download a lot of rss feeds. But again it doesn't
support a proxy, that I could find.

Question: Am i right that twisted.web.client does not support proxying?

Kind regards,
Matthijs

ps. I am just starting with Python
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Matthijs <ne********@high.speedlinq.nl> writes:
I have been trying to make a script that will download several rss
feeds to my computer. The only problem I have is that I have to go
through a proxy.

First I tried using urllib (python 2.4, win32) but I found that the
http_proxy and no_proxy code were not implemented for win32. I have
made changes to urllib and urllib2 so that they use the proxy set in
either the windows registry or in an environment variable.

Question: How can I get this code added to the python distribution?


submit a patch to <URL: http://sourceforge.net/tracker/?group_id=5470 >.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.