Grabbing URL:s with style

urlgrabber is a fairly nice Python package for grabbing URL:s. The documentation is kind of sparse, but reading the source is easy enough.

Here is a simple example:

from urlgrabber.grabber import URLGrabber
from urlgrabber.progress import TextMeter
    
grabber = URLGrabber(progress_obj = TextMeter())
grabber.urlgrab('http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tar.bz2')

Inga kommentarer:

Bloggarkiv