Skip to content

klovercloud-dev/ipblock-scraping-service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ipblock Scraping Service

This service webscrap cidr of ipv4 address of all the country of the globe from ipverse github repo. Then it calculates the first and last range of the cidr. After that it sort the ip addresses based on cidr and store it to redis.

The ips' stored in database like below:

{
  "values": [
    {
      "cidr": "1.0.0.0/24",
      "country": "AU",
      "first_host": "1.0.0.0",
      "last_host": "1.0.0.0"
    },
    {
      "cidr": "1.0.1.0/24",
      "country": "CN",
      "first_host": "1.0.1.0",
      "last_host": "1.0.1.0"
    },
    {
      "cidr": "1.0.2.0/23",
      "country": "CN",
      "first_host": "1.0.2.0",
      "last_host": "1.0.3.255"
    },
    --------------------------
    --------------------------
    --------------------------
  ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.0%
  • Shell 1.0%