searching string url
Robert Kern
rkern at ucsd.edu
Wed Jul 27 16:39:13 EDT 2005
googlinggoogler at hotmail.com wrote:
> 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?
You want to use BeautifulSoup.
http://www.crummy.com/software/BeautifulSoup/
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list