Tag: recursive

Sketch of recursive link python webcrawler

As evolution of the previous python snippet, this script allows to search a string inside url content and recursively follow their links. import urllib2 import sys import re def getlinksfromurl(url): linkset = set() try: usock = urllib2.urlopen(url) data = usock.read()

Posted in Internet, Programming, Python Tagged with: , ,
%d bloggers like this: