euscan: respect robots.txt

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
Corentin Chary
2011-09-06 16:32:29 +02:00
parent bd75e1af4e
commit a137ef60e3
5 changed files with 52 additions and 2 deletions

View File

@ -57,6 +57,9 @@ def scan_directory_recursive(cpv, url, steps):
except IOError:
return []
if not fp:
return []
data = fp.read()
results = []

View File

@ -38,6 +38,9 @@ def scan(cpv, url):
except IOError:
return []
if not fp:
return []
data = fp.read()
dom = xml.dom.minidom.parseString(data)

View File

@ -33,6 +33,9 @@ def scan(cpv, url):
except IOError:
return []
if not fp:
return []
data = fp.read()
versions = json.loads(data)