[lxml-dev] parse unable to load url
Mary Lei
lei at ipac.caltech.edu
Wed May 20 19:14:00 CEST 2009
This works great for me:
tiny <Element html at 4968b8>
fd <addinfourl at 5879688 whose fp = <socket._fileobject object at
0x59dcb0>>
<Element html at 496ae8>
['http://tinyurl.com/2xae8s', 'http://preview.tinyurl.com/2xae8s']
Thanks so much.
I am beginning to believe in lxml.
Sorry, Stefan :-)
Sergio Monteiro Basto wrote:
> Forgot cc to list !
>
> On Tue, 2009-05-19 at 14:44 -0700, Mary Lei wrote:
>> page = parse('http://tinyurl.com').getroot()
> http://tinyurl.com redirect to http://tinyurl.com/
>
> page = parse('http://tinyurl.com/').getroot()
> works
>
> best regards
>
--
Mary Lei
Software Testing
IPAC-NExScl
Rm: KS-233
MS: 220-6
Phone: 395-1998
More information about the lxml-dev
mailing list