Skip to content

A lightweight IPinfo CSV database, updated daily at 12:00 UTC.

License

MIT, CC-BY-SA-4.0 licenses found

Licenses found

MIT
LICENSE
CC-BY-SA-4.0
LICENSE.DATABASE
Notifications You must be signed in to change notification settings

Alice39s/ipinfo-csv-lite

Repository files navigation

ipinfo-csv-lite

A lightweight IPinfo CSV database, updated daily at 12:00 UTC.

Download

Format Size Latest Release Download Link
CSV ~110MB https://github.com/alice39s/ipinfo-csv-lite/releases/latest/download/ipinfo-lite.csv
CSV (Gzip) ~15MB https://github.com/alice39s/ipinfo-csv-lite/releases/latest/download/ipinfo-lite.csv.gz
CSV (Lzma) ~12MB https://github.com/alice39s/ipinfo-csv-lite/releases/latest/download/ipinfo-lite.csv.xz

You can also download the latest release from Releases page.

Data Structure

Python

from typing import TypedDict, Optional

class IPInfo(TypedDict):
    cidr: str
    country_code: str 
    continent_code: str
    as_number: int
    as_name: Optional[str]

Go

type IPInfo struct {
    CIDR          string  `json:"cidr"`
    CountryCode   string  `json:"country_code"`
    ContinentCode string  `json:"continent_code"` 
    ASNumber      int     `json:"as_number"`
    ASName        *string `json:"as_name"`
}

TypeScript

interface IPInfo {
  cidr: string;
  country_code: string;
  continent_code: string;
  as_number: number;
  as_name: string | null;
}

Requirements

  • Python 3.10+

Usage

  1. Download the latest IPinfo CSV file from IPinfo Dashboard - "Free IP to Country + IP to ASN".
  2. Move the CSV file to ./libs/country_asn.csv.
  3. Run the script.
  4. The output file will be ./libs/ipinfo-lite.csv.

Data Source

  • IPinfo - Free IP to Country + IP to ASN

License

Code is licensed under MIT.

Data is licensed under CC BY-SA 4.0.

About

A lightweight IPinfo CSV database, updated daily at 12:00 UTC.

Topics

Resources

License

MIT, CC-BY-SA-4.0 licenses found

Licenses found

MIT
LICENSE
CC-BY-SA-4.0
LICENSE.DATABASE

Stars

Watchers

Forks