mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Also scrapes https pages.
This commit is contained in:
committed by
Neil Williams
parent
64d068529e
commit
13feb89274
@@ -96,7 +96,7 @@ def fetch_url(url, referer = None, retries = 1, dimension = False):
|
||||
nothing = None if dimension else (None, None)
|
||||
url = clean_url(url)
|
||||
#just basic urls
|
||||
if not url.startswith('http://'):
|
||||
if not (url.startswith('http://') or url.startswith('https://')):
|
||||
return nothing
|
||||
while True:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user