-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conversion tool #136
Comments
So the conversion tool has evolved a bit to do the downloading and converting as one job. It's called You'll want to edit it, and modify the URLs to the paid versions that you have access to on MaxMind's servers, but if you're a javascript programmer, you could just as well edit the script to accept pre-fetched DB files, and skip the If you'd like to submit a patch for this, I'll merge it in. |
I went about it something like this:
|
I only used the paid files at the country-level, but needed to download the free City level files to have something to work with, so here's what my var databases = [
{
type: 'country',
url: 'http://localhost:5000/GeoIP2-Country-CSV_20181218.zip',
src: [
'GeoIP2-Country-Locations-en.csv',
'GeoIP2-Country-Blocks-IPv4.csv',
'GeoIP2-Country-Blocks-IPv6.csv'
],
dest: [
'',
'geoip-country.dat',
'geoip-country6.dat'
]
},
{
type: 'city',
url: 'http://localhost:5000/GeoLite2-City-CSV_20181218.zip',
src: [
'GeoLite2-City-Locations-en.csv',
'GeoLite2-City-Blocks-IPv4.csv',
'GeoLite2-City-Blocks-IPv6.csv'
],
dest: [
'geoip-city-names.dat',
'geoip-city.dat',
'geoip-city6.dat'
]
}
]; |
Is the format the same for paid files? Only the place where they can be fetched is different? |
yes |
I've paid for the maxmind database. is there any documentation on how to use the conversion tool i keep reading about? I have the DB files, how do i now convert them so geoip-lite will be able to use them?
The text was updated successfully, but these errors were encountered: