用Python获取设备的物理位置? [英] Get physical position of device with Python?

查看:113
本文介绍了用Python获取设备的物理位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以使用Python获取计算机的物理位置,最好是没有API或免费的API?我搜索了一下,我发现的唯一免费API非常非常不准确。我只需要这样做就有点准确,因为它是为了获得当地天气。

你可以从网页上刮取它,比如<例如 http://www.geoiptool.com/

Is there a way to get the computer's physical position using Python, preferably without an API, or with a free API? I've searched around a bit, and the only free API I've found is very, very inaccurate. I only need this to be somewhat accurate, as it's for getting local weather.

解决方案

You can scrape it from a webpage like http://www.geoiptool.com/ for example.

这篇关于用Python获取设备的物理位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆