mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 14:59:02 +00:00
Slowly losing my sanity part 1: Removed scrapy dependency and moved to custom solution. Added multi-threaded ftp crawler
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user