Im looking to write a program that finds the street address of the client computer with python. I don’t mind how it’s formatted however.
I’ve tried a few things here and there but I honestly don’t know a lot about this kind of thing, and so I dont really know where to start.
I would like to simply run the program, and write to the console the location of the client computer running it.
RazorSteel3830 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3
If you are talking about lat/lon you can use geocoder library so:
pip3 install geocoder
In the terminal to install the geocoder package. Then for the actual program do:
import geocoder
location = geocoder.ipinfo('me')
print(location.latlng)