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
|
text = script.text
|
||||||
if text is None:
|
if text is None:
|
||||||
continue
|
continue
|
||||||
m = re.search('"memberLat":\s*([\-\d\.]+),', text, re.IGNORECASE)
|
m = re.search("'memberLat'\s*:\s*([\-\d\.]+),", text, re.IGNORECASE)
|
||||||
if m:
|
if m:
|
||||||
profile['lat'] = float(m.group(1))
|
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:
|
if m:
|
||||||
profile['lng'] = float(m.group(1))
|
profile['lng'] = float(m.group(1))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue