Making HTTP requests using Twisted

Fredrik Lundh fredrik at pythonware.com
Tue Jul 11 05:24:22 EDT 2006


"rzimerman" wrote:

> Is Twisted the best library for me to be using? I do like Twisted, but
> it seems more suited to batch mode operations. Is there some way that I
> could continue registering url requests while the reactor is running?
> Is there a way to specify a time out per page request, rather than for
> a batch of pages requests?

there are probably ways to solve this with Twisted, but in case you want a
simpler alternative, you could use Python's standard asyncore module and
the stuff described here:

    http://effbot.org/zone/effnews.htm

especially

    http://effbot.org/zone/effnews-1.htm#storing-the-rss-data
    http://effbot.org/zone/effnews-3.htm#managing-downloads

</F> 






More information about the Python-list mailing list