how to scrape url out of href

Paul Rubin http
Mon Jan 2 01:39:30 CET 2006


homepricemaps at gmail.com writes:
> does anyone have sample code for scraping the actual url out of an href
> like this one
> 
> <a href="http://www.cnn.com" target="_blank">

If you've got the tag by itself like that, just use a regexp to get
the href out.



More information about the Python-list mailing list