Downloading TV listings with urllib

carroll at tjc.com carroll at tjc.com
Fri Apr 18 01:45:47 EDT 2003


On 17 Apr 2003 17:23:34 GMT, Josh <mlsj at earthlink.net> wrote:

>Can someone give me general pointers on how it could be done? I am trying 
>to go to tvguide.com and download the TV listings for my area. The problem 
>is how to specify my location and cable provider. 

Josh --

I don't have specific pointers on your question.  However, you should
be aware that there's already a project to do this fetching, although
in Perl, not Python: XMLTV, at
<http://sourceforge.net/projects/xmltv>.

It brings down the listings and stores them in an XML file.  You might
find it most convenient to use XMLTV to download your listings, and
then use Python's XML facilities to process them (I've had just this
sort of project on the back burner for some time).  

In any event, you might find looking at the XMLTV code instructive,
even though it's Perl.

Good luck.




More information about the Python-list mailing list