fix parsing of geo position
This commit is contained in:
parent
7094d65d9c
commit
9fe4314835
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue