[Tutor] Grabbing data from changing website

Tony Cappellini cappy2112 at gmail.com
Thu Jun 5 21:03:23 CEST 2008

> Message: 4
> Date: Wed, 4 Jun 2008 10:00:46 -0400
> From: James <jtp at nc.rr.com>
> Subject: [Tutor] Grabbing data from changing website
> To: tutor at python.org
> Message-ID:
>        <e107b4ff0806040700o33b1f221y2d8a6ba24ed9d55e at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> >>urllib2 will grab the HTML. BeautifulSoup will parse it and allow
> >>fairly easy access. My writeup on each:

> I'll second Kent's vote for BeautifulSoup.

I had never done any web programming, but using BS I quickly wrote a small
program that downloads an image from a site.
The image changes daily, and the filename & directory are obviously unique.
BS made it very easy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080605/c0ddbee1/attachment.htm>

More information about the Tutor mailing list