trackers module

This commit is contained in:
Andrey Meshkov
2018-10-12 14:23:41 +03:00
committed by Ildar Kamalov
parent 11e8853a34
commit 5fb603f6c9
5 changed files with 7350 additions and 3 deletions

View File

@@ -1,2 +1,2 @@
node_modules
whotracksme.json
whotracksmedb.json

View File

@@ -9,4 +9,4 @@ yarn install
yarn index.js
```
You'll find the output in the `whotracksme.json` file.
You'll find the output in the `whotracksmedb.json` file.

View File

@@ -3,7 +3,7 @@ const sqlite3 = require('sqlite3').verbose();
const downloadFileSync = require('download-file-sync');
const INPUT_SQL_URL = 'https://raw.githubusercontent.com/cliqz-oss/whotracks.me/master/whotracksme/data/assets/trackerdb.sql';
const OUTPUT_PATH = 'whotracksme.json';
const OUTPUT_PATH = 'whotracksmedb.json';
console.log('Downloading ' + INPUT_SQL_URL);
let trackersDbSql = downloadFileSync(INPUT_SQL_URL).toString();