euscan: don't get robots.txt on ftp
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
parent
a137ef60e3
commit
2210b2610d
@ -217,6 +217,9 @@ def urlallowed(url):
|
|||||||
|
|
||||||
protocol, domain = urlparse.urlparse(url)[:2]
|
protocol, domain = urlparse.urlparse(url)[:2]
|
||||||
|
|
||||||
|
if 'protocol' == 'ftp':
|
||||||
|
return True
|
||||||
|
|
||||||
baseurl = '%s://%s' % (protocol, domain)
|
baseurl = '%s://%s' % (protocol, domain)
|
||||||
robotsurl = urlparse.urljoin(baseurl, 'robots.txt')
|
robotsurl = urlparse.urljoin(baseurl, 'robots.txt')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user