
You didn't write that awful page. You're just trying to get some data out of it. Right now, you don't really care what HTML is supposed to look like.
Neither does this parser.
"A tremendous boon." -- Python411 Podcast
[ Download | Documentation | Source | What's New | Contributors | Discussion group ]Having problems with version 3.1.0? See here.
If you have questions, send them to the discussion group.
Beautiful Soup is a Python HTML/XML parser designed for quick turnaround projects like screen-scraping. Three features make it powerful:
Beautiful Soup parses anything you give it, and does the tree traversal stuff for you. You can tell it "Find all the links", or "Find all the links of class externalLink", or "Find all the links whose urls match "foo.com", or "Find the table heading that's got bold text, then give me that text."
Valuable data that was once locked up in poorly-designed websites
is now within your reach. Projects that would have taken hours take
only minutes with Beautiful Soup.
Download Beautiful Soup
The latest version is Beautiful Soup version 3.1.0.1, released January 6, 2009. Beautiful Soup is licensed under the same terms as Python itself, so you can drop BeautifulSoup.py into almost any Python application (or into your library path) and start using it immediately. If you have problems with 3.1.0.1, try 3.0.7a.
Beautiful Soup is known to work with Python versions 2.4, 2.5, and (after an automatic conversion) 3.0. Currently the 3.0.x series is better at parsing bad HTML than the 3.1 series.
Older versions are still available: the 1.x series works with Python 1.5, and the 2.x series still has some installed base. The 3.0.x series is known to work with Python 2.3.
Development happens at Launchpad.
|
This document (source) is part of Crummy, the webspace of Leonard Richardson (contact information). It was last modified on Tuesday, April 07 2009, 16:59:28 Nowhere Standard Time and last built on Friday, June 12 2009, 23:27:49 Nowhere Standard Time.
| Document tree: Site Search: |