From 9fe4314835dbb353c339d3d7e6d2180c6ef836fc Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 5 Sep 2015 13:05:37 +0200 Subject: [PATCH] fix parsing of geo position --- modules/aum/browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/aum/browser.py b/modules/aum/browser.py index 552ec745..d551ccfa 100644 --- a/modules/aum/browser.py +++ b/modules/aum/browser.py @@ -119,10 +119,10 @@ class WebsiteBrowser(LoginBrowser): text = script.text if text is None: continue - m = re.search('"memberLat":\s*([\-\d\.]+),', text, re.IGNORECASE) + m = re.search("'memberLat'\s*:\s*([\-\d\.]+),", text, re.IGNORECASE) if m: profile['lat'] = float(m.group(1)) - m = re.search('"memberLng":\s*([\-\d\.]+),', text, re.IGNORECASE) + m = re.search("'memberLng'\s*:\s*([\-\d\.]+),", text, re.IGNORECASE) if m: profile['lng'] = float(m.group(1))