Skip to content

Tag Archives: beautifulsoup

Chuck Norris doesn’t screen-scrape, the data runs scared to his hard drive.

01-Mar-11

Inspired by a tweet from Roger Ehrenberg and my 11-year-old son who’s crazy about Chuck Norris facts, I screen-scraped the contents of http://www.chucknorrisfacts.com. Code and data can be found here. Using Python and BeautifulSoup, it simply loops through all of the pages on http://www.chucknorrisfacts.com and reads the items displayed on the page. Output looks like Visit [...]