Slowly losing my sanity part 1: Removed scrapy dependency and moved to custom solution. Added multi-threaded ftp crawler

This commit is contained in:
Simon
2018-06-11 15:46:55 -04:00
parent b649b82854
commit 7f496ce7a8
10 changed files with 338 additions and 284 deletions

View File

@@ -75,7 +75,7 @@ def is_od(url):
ftp.close()
return True
else:
r = requests.get(url, timeout=15, allow_redirects=False)
r = requests.get(url, timeout=30, allow_redirects=False)
if r.status_code != 200:
print("No redirects allowed!")
return False