mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-07 16:54:21 +02:00
Merge pull request #4 from christophermluna/patch-1
Update API endpoint for GeoIP web services
This commit is contained in:
commit
0d4680d9aa
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def get_location():
|
||||||
"""Return current location as latitude/longitude tuple."""
|
"""Return current location as latitude/longitude tuple."""
|
||||||
logger.debug("query MaxMind for location")
|
logger.debug("query MaxMind for location")
|
||||||
r = requests.get(
|
r = requests.get(
|
||||||
"https://www.maxmind.com/geoip/v2.1/city/me",
|
"https://geoip.maxmind.com/geoip/v2.1/city/me",
|
||||||
headers={"referer": "https://www.maxmind.com/en/locate-my-ip-address"},
|
headers={"referer": "https://www.maxmind.com/en/locate-my-ip-address"},
|
||||||
timeout=10,
|
timeout=10,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue