[Tutor] Finding an URL

Terje Johan Abrahamsen terjeja@hotmail.com
Tue, 10 Sep 2002 17:50:44 +0000


Is there some easy way to identify an URL in a file? I would like to send 
some sourcecode in as a file, get Python to read thru it and spit out the 
URLS. I found a module, robotparser that might work? I didn't really 
understand exactly what it did. Is there another module that might work, or 
is my best bet to read line by line, and look for eg www, by moving 
character by character?

Thanks, Terje

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com