O'Reilly logo

Programming Collective Intelligence by Toby Segaran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Third-Party Libraries

This book has introduced a number of third-party libraries that we used to collect, store, and analyze data. This appendix covers download and installation instructions, along with some examples of usage.

Universal Feed Parser

The Universal Feed Parser is a Python library written by Mark Pilgrim for parsing RSS and Atom feeds. This library is used throughout the book for easily downloading blog posts and articles from online news sources. The home page of the library is http://feedparser.org.

Installation for All Platforms

The download page for the library is http://code.google.com/p/feedparser/downloads/list. Download the latest version of the file named feedparser-X.Y.zip.

Extract the contents of the zip file into an empty directory. At a command prompt, enter:

c:\download\feedparser>python setup.py install

This will locate your Python installation and install the library there. After it is installed, you can enter import feedparser at your Python prompt to begin using it.

Example usage of the library is provided at http://feedparser.org/.

Python Imaging Library

The Python Imaging Library (PIL) is an open-source library that adds image creation and processing capabilities to Python. It supports a wide variety of drawing operations and file formats. The home page for this library is http://www.pythonware.com/products/pil.

Installation on Windows

PIL has a Windows installer available for download. On the library home page, scroll to the Downloads section and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required