GithubHelp home page GithubHelp logo

wemecan / czipdata Goto Github PK

View Code? Open in Web Editor NEW

This project forked from a76yyyy/ipdata

0.0 0.0 0.0 35.61 MB

纯真IP数据库镜像及同步 for Python

License: MIT License

Python 98.47% Batchfile 1.53%

czipdata's Introduction

czipdata

纯真IP数据库镜像及mysql同步更新 for Python

Github:https://github.com/a76yyyy/czipdata

Gitee :https://gitee.com/a76yyyy/czipdata

功能

  1. 通过Python实现纯真IP数据库的镜像更新,数据库在data文件夹下;
  2. 将数据文件解析为txt格式;
  3. 将数据文件全量导入mysql中;
  4. 将mysql数据库中的IP数据库内的地址细分为省市区;
  5. 生成sql脚本文件;
  6. 使用BAT文件实现数据库的自动更新和推送;
  7. 结合计划任务可实现windows的定时更新。

数据文件

文件 内容
czipdata_version.bin 本地数据文件版本记录
czipdata.dat 纯真IP数据文件
czipdata.txt 纯真IP数据TXT文件
correct.json 地址细分纠错文件
ipdatabase.sql IP数据库sql脚本
college_info.sql 高校信息表sql脚本
iprange_info.sql IP数据表sql脚本

TODO

  1. 将数据文件导入sqlite3数据库db文件中;
  2. 实现数据库的增量更新;
  3. 实现Linux定时更新;
  4. ipv6数据库。

图片

image image image 示例API接口(暂不提供源码):https://api.a76yyyy.xyz/ip?function=ipInfo&params1=114.114.114.114 image

czipdata's People

Contributors

a76yyyy avatar

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.