Updating GeoLite2 CSV files

huangapple go评论58阅读模式
英文:

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

你可以每周添加一个定时任务来下载最新更新。

查看这里的直接下载说明:

  1. 从Maxmind的网站获取URL。

  2. /geoip_download_by_token 替换为 /geoip_download

  3. 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:

  1. Take the URL from Maxmind's site.

  2. Replace /geoip_download_by_token with /geoip_download

  3. Replace token=XXXX with license_key=YOUR_LICENSE_KEY. You will need to replace the YOUR_LICENSE_KEY placeholder with an active license key associated with your MaxMind account.

https://dev.maxmind.com/geoip/geoipupdate/#Direct_Downloads

答案3

得分: 0

CSV文件不受支持

此处所记录。

英文:

CSV-files are not supported!

As documented here.

huangapple
  • 本文由 发表于 2020年1月6日 23:15:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/59614558.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定