英文:
Updating GeoLite2 CSV files
问题
"自2020年1月1日起,需要在MaxMind注册以获取访问GeoLight2数据库的权限。"
"我刚刚成功安装了'geoipupdate'过程,并可以更新GeoLite2数据库。"
"但我需要CSV版本,因为大多数我使用的工具都使用这些版本。"
"我尝试输入我的帐户中提供的CSV文件的ID,但结果出现以下错误消息:"
"检索更新时出错:检索文件名时出错:意外的HTTP状态代码:404未找到:未找到数据库版本"
"我的问题是:"
"获取CSV文件的最简单方法是什么,可以自动下载?"
英文:
Since 1.1.2020 one need to register with MaxMind to get access to the GeoLight2 databases.
I have just sucessfully installed the geoipupdate
procedure and can update the GeoLite2 databases.
But I would need the CSV-versions - as those are the used by most of the tools I use.
I have tried to enter the ID's given in my account for the CSV-files, but this resulted in the following error message:
error retrieving updates: error retrieving filename: unexpected HTTP status code: 404 Not Found: Database edition not found
My question:
What is the simplest way to get the CSV-files automatically downloaded?
答案1
得分: 0
date=20200107 works.
我猜他们每周更新7天。
英文:
date=20200107 works.
I guess they update every week\7 days
答案2
得分: 0
你可以每周添加一个定时任务来下载最新更新。
查看这里的直接下载说明:
-
从Maxmind的网站获取URL。
-
将
/geoip_download_by_token
替换为/geoip_download
。 -
将
token=XXXX
替换为license_key=YOUR_LICENSE_KEY
。您需要将YOUR_LICENSE_KEY
占位符替换为与您的MaxMind帐户关联的有效许可证密钥。
https://dev.maxmind.com/geoip/geoipupdate/#Direct_Downloads
英文:
You can add a crontab every week to download the last update.
See here instructions for direct download:
-
Take the URL from Maxmind's site.
-
Replace
/geoip_download_by_token
with/geoip_download
-
Replace
token=XXXX
withlicense_key=YOUR_LICENSE_KEY
. You will need to replace theYOUR_LICENSE_KEY
placeholder with an active license key associated with your MaxMind account.
答案3
得分: 0
CSV文件不受支持!
如此处所记录。
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论