From 4dedc86556ce951ffd267a3400c0237bd9db0a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Koch-Kramer?= Date: Thu, 23 Jun 2016 20:55:50 +0200 Subject: [PATCH] Ich hab mal ins Datenblatt geschaut. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dabei hat sich herausgestellt, dass die regex hessischen Ursprungs war. Außerdem hat Instagram wieder irgendwas an den URLs geändert. --- instagram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instagram.py b/instagram.py index 9c366f0..92512f1 100755 --- a/instagram.py +++ b/instagram.py @@ -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