bugfix
This commit is contained in:
parent
7cbeef06ed
commit
39b93323ad
@ -42,7 +42,8 @@ def ipaddress_com(ip):
|
|||||||
d['lat'] = float(td.contents[0].split(' ')[0])
|
d['lat'] = float(td.contents[0].split(' ')[0])
|
||||||
continue
|
continue
|
||||||
if th.contents[0] == 'IP Country':
|
if th.contents[0] == 'IP Country':
|
||||||
d['country'] = td.contents[1].split(' ')[0]
|
print('ip country:contents[1]=', td.contents[1])
|
||||||
|
d['country'] = td.contents[1].split('(')[0].strip()
|
||||||
continue
|
continue
|
||||||
if th.contents[0] == 'IP Longitude':
|
if th.contents[0] == 'IP Longitude':
|
||||||
d['lon'] = float(td.contents[0].split(' ')[0])
|
d['lon'] = float(td.contents[0].split(' ')[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user