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:
André Koch-Kramer 2016-06-23 20:55:50 +02:00
parent e837c8ab5a
commit 4dedc86556

View File

@ -88,7 +88,7 @@ def download_profilepic(name, url):
if os.path.isfile(filename): if os.path.isfile(filename):
print(filename + ' already exists') print(filename + ' already exists')
return None return None
m = re.search('http.*://.*instagram.*[^/]+\.(com|net)/[^/]+/.', url) m = re.search('http.*://.*instagram.*[^/]*\.(com|net)/[^/]+/.', url)
if m is None: if m is None:
raise DownloaderException("url \'" + url + "\' could not be processed") raise DownloaderException("url \'" + url + "\' could not be processed")
index = len(m.group(0))-1 index = len(m.group(0))-1