Add trackers, rework some text

This commit is contained in:
Andrey Meshkov
2018-10-14 23:24:11 +03:00
parent e67695df8b
commit 2f61b42e90
14 changed files with 11474 additions and 1386 deletions

View File

@@ -6,7 +6,7 @@ A simple script that converts the Ghostery/Cliqz trackers database to a json for
```
yarn install
yarn index.js
node index.js
```
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 = 'whotracksmedb.json';
const OUTPUT_PATH = 'whotracksme.json';
console.log('Downloading ' + INPUT_SQL_URL);
let trackersDbSql = downloadFileSync(INPUT_SQL_URL).toString();
@@ -50,7 +50,8 @@ db.serialize(function() {
whotracksme.trackers[row.id] = {
"name": row.name,
"categoryId": row.category_id
"categoryId": row.category_id,
"url": row.website_url
};
});

File diff suppressed because it is too large Load Diff