资 源 简 介
python-xmltv
Introduction
python-xmltv is a Python module that provides access to XMLTV data. XMLTV is
an XML format for storing TV listings.
More information on XMLTV can be found at http://membled.com/work/apps/xmltv/
Requirements
python-xmltv has no requirements on Python 2.5 and up. If you are using an older version of Python, it requires ElementTree, which can be found at
http://effbot.org/zone/element-index.htm
Installing
Get python-xmltv from http://code.google.com/p/python-xmltv/downloads/list
After untarring, you can install it with the following command::
python setup.py install
Usage
Usage of the module is generally straight-forward::
```
import xmltv
from pprint import pprint
If you need to change the locale:
xmltv.locale = "Latin-1"
If you need to change the date format used in the XMLTV file: