GithubHelp home page GithubHelp logo

mac-zhou / qqwry.ipdb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metowolf/qqwry.ipdb

0.0 2.0 0.0 185 KB

🐈️ 纯真数据库 IPIP.net 格式版,Make qqwry.ipdb Great Again!!!

Shell 3.63% JavaScript 96.37%

qqwry.ipdb's Introduction

qqwry.ipdb

纯真数据库 IPIP.net 格式版,精简并匹配为国家、省、市、运营商。
版本随上游 update.cz88.net 每天同步更新。

接到邮件通知,本项目将暂停更新,仅基于 2020.12.5 数据库维护修订版本

标准版

CDN URL
jsdelivr https://cdn.jsdelivr.net/npm/qqwry.ipdb/qqwry.ipdb
unpkg https://unpkg.com/qqwry.ipdb/qqwry.ipdb

标准版兼容所有官方 IPDB 格式解析代码,提供与官方每周高级版相同的五个解析字段。

name info
country_name 国家名称
region_name 区域名称,**为省份
city_name 城市名称,**为市级
owner_domain 拥有者域名
isp_domain 运营商名称

原版

CDN URL
jsdelivr https://cdn.jsdelivr.net/npm/qqwry.raw.ipdb/qqwry.ipdb
unpkg https://unpkg.com/qqwry.raw.ipdb/qqwry.ipdb

原版兼容所有官方 IPDB 格式解析代码,只提供和纯真格式相似的两个解析字段,后面三个字段为兼容占位使用。

name info
country 国家名称
area 区域名称
pad1 兼容占位
pad2 兼容占位
pad3 兼容占位

实例

metowolf/ipdb 解析库为例,首先安装依赖并下载标准版数据库

$ yarn add ipdb
$ yarn add qqwry.ipdb

新建文件 index.js

const IPDB = require('ipdb');
const qqwry_ipdb = require('qqwry.ipdb');
const ipdb = new IPDB(qqwry_ipdb);

ipdb.find('183.62.57.1');
/*
{
  data: {
    country_name: '**',
    region_name: '广东',
    city_name: '广州',
    owner_domain: '',
    isp_domain: '电信',
    ip: '183.62.57.1',
    bitmask: 24
  },
  code: 0
}
*/

感谢

qqwry.ipdb's People

Contributors

dependabot[bot] avatar metowolf avatar sukkaw avatar

Watchers

 avatar  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.