how to get user location in python

Solutions on MaxInterview for how to get user location in python by the best coders in the world

showing results for - "how to get user location in python"
Ester
31 Jun 2016
1import geocoder		# pip install geocoder
2g = geocoder.ip('me')
3print(g.latlng)