OLD | NEW |
(Empty) | |
| 1 urlfixer |
| 2 ======== |
| 3 |
| 4 Backend for the URL Fixer data collection. It provides the following URLs: |
| 5 |
| 6 * */submitData* - Receive data from URL Fixer extension |
| 7 |
| 8 Required packages |
| 9 ----------------- |
| 10 |
| 11 * [simplejson](http://pypi.python.org/pypi/simplejson/) |
| 12 |
| 13 Database setup |
| 14 -------------- |
| 15 |
| 16 Just execute the statements in _schema.sql_. |
| 17 |
| 18 Configuration |
| 19 ------------- |
| 20 |
| 21 Add an _urlfixer_ section to _/etc/sitescripts_ or _.sitescripts_ and configure
the following keys: |
| 22 |
| 23 * _database_ |
| 24 * _dbuser_ |
| 25 * _dbpassword_ |
| 26 |
| 27 Data transfer format |
| 28 ---------------------------- |
| 29 |
| 30 A domain transfered to the server can have one of the following types: |
| 31 |
| 32 * 1: the domain was entered without any further action |
| 33 * 2: the domain was recognized as a typo |
| 34 * 3: the domain is a correction that the user accepted |
| 35 * 4: the domain is a correction that the user declined |
| 36 |
| 37 The server expects the list to be transfered as a JSON object in no particular o
rder. Here is an example: |
| 38 |
| 39 ```js |
| 40 { |
| 41 "urlfixer.org": 1, |
| 42 "adblockplus,org": 2, |
| 43 "adblockplus.org": 3, |
| 44 "goggle.com": 1, |
| 45 "google.com": 4 |
| 46 } |
| 47 ``` |
OLD | NEW |