searching string url

googlinggoogler at hotmail.com googlinggoogler at hotmail.com
Wed Jul 27 16:23:07 EDT 2005


Hiya,

Im trying to find a method of searching a html file (ive grabbed it
with FancyURLopener), basically in the html file there is a series of
links in the following format -

A HREF="../../company/11/13/820.htm">some name</A

so I want to search the file for "../../company/" and then get the 13
charecters after it so that I can work it as a URL, if you see what I
mean?

Very gratefully

David




More information about the Python-list mailing list