scrape url out of brackets?

homepricemaps at gmail.com homepricemaps at gmail.com
Mon Jan 2 01:01:06 EST 2006


so here is the syntax folks!!!

 for anchor in soup.fetch('a', {'target': '_blank'}):
       print anchor['href']



homepricemaps at gmail.com wrote:
> so you recommend using some sort of for statement with the html parser
> where i tell it to only parse stuff found in the <tr> tag for instance?
>
> Ravi Teja wrote:
> > Regular Expressions are the most common way.
> > http://docs.python.org/lib/module-re.html
> >
> > HTML parser is another
> > http://docs.python.org/lib/module-htmllib.html




More information about the Python-list mailing list