Skip to content

jreusser/APNIC.Parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

APNIC.Parser

Simply to take the format which APNIC releases and turn it into a more useful format

Running the file

Just running the file will download the latest version from the ftp and output AU location ipv4 address ranges in en.wikipedia.org/wiki/CIDR_notation format.

Output is on both the console and put onto the clipboard

Usage is

apnicparser [filename [location,location,... [ type,type,... [long|l]]]

filename: can be a relative filename to the application, complete filename, or a web URI, or special name ":"

If filename is ":" then the filename defaults to ftp://ftp.apnic.net/public/apnic/stats/apnic/delegated-apnic-extended-latest

Any web site download will cache the results in a local file called delegated-apnic-extended-latest.cached through a temp file delegated-apnic-extended-latest.temp so if either of those exist then they will be deleted

As long as the cached file is less than a day old it will not be deleted, otherwise it will be re-downloaded

location: is a comma separated list of the locations which should be included in the result

type: is a comma separated list of the types which should be included in the result (note that only ipv4 does anything useful)

long or l : means that a longer more verbose form of the output should be output

About

A simple parser for the data published from APNIC

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%