Downloading TV listings with urllib
mlsj at earthlink.net
Fri Apr 18 04:07:54 CEST 2003
Gerhard Häring <gh at ghaering.de> wrote in
news:mailman.1050608946.14831.python-list at python.org:
> Josh wrote:
>> On 17 Apr 2003, you wrote in comp.lang.python:
>>>Josh wrote: [...]
>>>> 'gzip,deflate,compress;q=0.9') [...]
>>>>when I use err.read() to read the object returned I get everything
>>>My guess is that you get what you're asking for - gzip-compressed
>> Well I don't want gzipped data. I want HTML so I can parse it and
>> the listings table into a list or something. Any ideas?
> Don't tell the webserver that you'll accept gzip-compressed data?
> I. e. remove the line I quoted above.
> -- Gerhard
Thanks Gerhard, it worked. I just removed the 'Accept-Encoding' part and
More information about the Python-list