468,296 Members | 1,242 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,296 developers. It's quick & easy.

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

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
1 3539
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.

Similar topics

4 posts views Thread by bmiras | last post: by
23 posts views Thread by anton.vredegoor | last post: by
3 posts views Thread by Michael Rybak | last post: by
4 posts views Thread by rzimerman | last post: by
6 posts views Thread by Larry Hale | last post: by
reply views Thread by Python Nutter | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.