http://code.activestate.com/recipes/114217/
On Tue, Mar 17, 2009 at 1:38 PM, Saurabh wrote:
> Heres the reason behind wanting to get chunks at a time.
> Im actually retrieving data from a list of RSS Feeds and need to
> continuously check for latest posts.
> But I dont want to depend on Last-Modi
2009/3/16 Saurabh :
> I want to download content from the net - in chunks of x bytes or characters
> at a time - so that it doesnt pull the entire content in one shot.
>
> import urllib2
> url = "http://python.org/";
> handler = urllib2.urlopen(url)
>
> data = handler.read(100)
> print """Content :