weather: use https for the nominatim
parent
179ed312e9
commit
c859ad0d53
|
@ -17,7 +17,7 @@ r_from = re.compile(r'(?i)([+-]\d+):00 from')
|
|||
|
||||
|
||||
def location(q):
|
||||
uri = 'http://nominatim.openstreetmap.org/search/?q={query}&format=json'.\
|
||||
uri = 'https://nominatim.openstreetmap.org/search/?q={query}&format=json'.\
|
||||
format(query=web.quote(q))
|
||||
results = web.get(uri)
|
||||
data = json.loads(results)
|
||||
|
|
Loading…
Reference in New Issue