how to scrape url out of href

Paul Rubin http
Sun Jan 1 19:39:30 EST 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