[tor-commits] [ooni-probe/master] Add GeoLiteCity dataset to ooniresources

art at torproject.org art at torproject.org
Sat Jan 3 15:05:12 UTC 2015


commit d4000ce10305b7e3580e7e420b67a8bed2b4e50e
Author: aagbsn <aagbsn at extc.org>
Date:   Sun Oct 26 16:25:07 2014 +0000

    Add GeoLiteCity dataset to ooniresources
---
 ooni/resources/__init__.py |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ooni/resources/__init__.py b/ooni/resources/__init__.py
index 0517252..d0f0cb9 100644
--- a/ooni/resources/__init__.py
+++ b/ooni/resources/__init__.py
@@ -26,6 +26,13 @@ inputs = {
 }
 
 geoip = {
+    "GeoLiteCity.dat.gz": {
+        "url": "https://geolite.maxmind.com/download/"
+               "geoip/database/GeoLiteCity.dat.gz",
+        "action": gunzip,
+        "action_args": [config.advanced.geoip_data_dir],
+        "processor": None
+    },
     "GeoIPASNum.dat.gz": {
         "url": "https://geolite.maxmind.com/download/"
                "geoip/database/asnum/GeoIPASNum.dat.gz",





More information about the tor-commits mailing list