Parsing an HTML a tag

Stephen Prinster prinster at mail.com
Sat Sep 24 14:12:45 EDT 2005


George wrote:
> How can I parse an HTML file and collect only that the A tags. I have a
> start for the code but an unable to figure out how to finish the code.
> HTML_parse gets the data from the URL document. Thanks for the help

Have you tried using Beautiful Soup?

http://www.crummy.com/software/BeautifulSoup/



More information about the Python-list mailing list