Re: high performance hyperlink extraction

2005-09-13 Thread Bryan Olson
Adam Monsen wrote: > The following script is a high-performance link ( href="...">...) extractor. [...] > * extract links from text (most likey valid HTML) [...] > import re > import urllib > > whiteout = re.compile(r'\s+') > > # grabs hyperlinks from text > href_re = re.compile(r''' >

Re: high performance hyperlink extraction

2005-09-13 Thread felipevaldez
pretty nice, however, u wont capture the more and more common javascripted redirections, like click me nor http://www.yahoo.com";> nor http://www.yahoo.com"; name=x> . im guessing it also wont handle correctly thing like: click but you probably already knew all this stuff, didnt