U
U
UltraRazrab2282021-06-07 20:00:22
Python
UltraRazrab228, 2021-06-07 20:00:22

How to get my location in python without IP?

Hello, habrovtsy!
In general, you need to find a more or less exact location using python.
I say right away that the location by ip is not needed, because it is not accurate.
If anything, I'm a newbie, so I can carry some kind of nonsense.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
Jourloy, 2021-06-07
@UltraRazrab228

A fairly accurate location can be obtained from the MAC address. There are services on the Internet for this, you can send a request to them from python

S
Sergey Gornostaev, 2021-06-07
@sergey-gornostaev

Without IP, only get them from a gps sensor connected to the host where the script is running.

V
Vladimir Korotenko, 2021-06-07
@firedragon

For the browser, only what it receives from the sensor. How he will provide you you do not know.
For mobile phones, you can set the source, too, by the way, the provider can reset it, but on mobile phones it’s somewhat more accurate by ip

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question