GithubHelp home page GithubHelp logo

stephenjose-dai / iplocation Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 40.35 MB

一个可以批量查询IP归属国、城市和ASN的小工具

Home Page: https://www.daishenghui.club

License: GNU General Public License v3.0

Python 100.00%
asn city country ip iplocation

iplocation's Introduction

IPLocation

一个可以批量查询IP归属国、城市和ASN的小工具,由戴戴的Linux制作、福建省智网云科、福建省数网云提供技术指导

环境

1、Linux、Windows 2、Python ≥ 3.6

Windows使用方法

1、配置并激活虚拟环境

python -m venv search  //这里的search是虚拟目录的名字,可以取一个你喜欢的
C:\Users\ZWYK\Desktop\search\Scripts\activate

2、安装geoip2、tk模块

pip install geoip2
pip install tk

3、运行git clone下来后里面的Win文件夹的search.py

python search.py

4、根据提示选择ASN、Country、City数据库和IP文件,然后选择要保存结果的位置和名字即可

5、如果不会的话,可以下载release中现成的程序来运行,直接双击ipsearch.exe然后选择对应的数据库文件、IP文件以及保存的位置和名字即可。

Linux下的使用方法

1、配置并激活虚拟环境

virtualenv search   //这里的search是虚拟目录的名字,可以取一个你喜欢的
source search/bin/activate

2、安装geoip2模块

pip install geoip2

3、运行git clone下来后里面的Linux文件夹的search.py

python search.py

4、根据提示输入ASN、Country、City数据库的路径和名字以及IP文件的路径和名字,然后选择要保存结果的路径和名字即可

扫一扫二维码关注我学习更多知识吧~

戴戴的Linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.