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 ...

Get Programming Collective Intelligence now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.