Ich hab mal ins Datenblatt geschaut.
Dabei hat sich herausgestellt, dass die regex hessischen Ursprungs war. Außerdem hat Instagram wieder irgendwas an den URLs geändert.
This commit is contained in:
parent
e837c8ab5a
commit
4dedc86556
@ -88,7 +88,7 @@ def download_profilepic(name, url):
|
||||
if os.path.isfile(filename):
|
||||
print(filename + ' already exists')
|
||||
return None
|
||||
m = re.search('http.*://.*instagram.*[^/]+\.(com|net)/[^/]+/.', url)
|
||||
m = re.search('http.*://.*instagram.*[^/]*\.(com|net)/[^/]+/.', url)
|
||||
if m is None:
|
||||
raise DownloaderException("url \'" + url + "\' could not be processed")
|
||||
index = len(m.group(0))-1
|
||||
|
Loading…
Reference in New Issue
Block a user