fixed a crawler bug

This commit is contained in:
Somdev Sangwan
2019-04-30 22:09:40 +05:30
committed by GitHub
parent d28d553179
commit 5a6d77370b

View File

@@ -217,6 +217,7 @@ def js_extractor(response):
def handle_anchor(parent_url, url):
scheme = urlparse(parent_url).scheme
if url[:4] == 'http':
return url
elif url[:2] == '//':