You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-9Lines changed: 18 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# Database Reports
2
-
Generates statistical reports which are used by community members to improve Wikipedia.
2
+
Generates statistical reports which are used by community members to improve Wikipedia.
3
3
4
-
This project allows the [Community Tech bot](https://en.wikipedia.org/wiki/User:Community_Tech_bot) to make periodic updates to these reports on different language Wikipedias. As of now the project support report generation for English ([see here](https://en.wikipedia.org/wiki/Wikipedia:Database_reports)), Vietnamese, Korean and French Wikipedia.
4
+
This project allows the [Community Tech bot](https://en.wikipedia.org/wiki/User:Community_Tech_bot) to make periodic updates to these reports on different language Wikipedias. As of now the project support report generation for English ([see here](https://en.wikipedia.org/wiki/Wikipedia:Database_reports)), Vietnamese, Korean and French Wikipedia.
5
5
6
-
## Specific statistics that the reports support:
6
+
## Specific statistics that the reports support:
7
7
* Unused templates
8
8
* Forgotten articles
9
9
* Most used templates
@@ -13,21 +13,30 @@ This project allows the [Community Tech bot](https://en.wikipedia.org/wiki/User:
13
13
* Unused file redirects
14
14
* Forgotten articles
15
15
* Page with most revisions
16
-
* Page count by namespace
17
-
* Most edited articles last month
16
+
* Page count by namespace
17
+
* Most edited articles last month
18
18
* PRODed articles with deletion logs
19
19
* Editors eligible for autopatrol privileges
20
20
* Active editors with the longest-established accounts
21
21
22
-
## Generating a report
22
+
## Installation
23
+
Virtualenv is recommended:
24
+
25
+
virtualenv venv
26
+
source venv/bin/activate
27
+
pip install -r requirements.txt
28
+
29
+
After installation, either activate virtualenv like above or use `venv/bin/python` to run scripts.
30
+
31
+
## Generating a report
23
32
* Log into the Toolforge bastion using your Wikimedia developer account ```ssh username@login.tools.wmflabs.org```
24
33
* Become your tool account ```become database-reports```
25
-
* Run ```python main.py test articles_by_size```. It takes two arguments; in this example test refers to `test.wikipedia.org` and `articles_by_size` is the type of statistics you're requesting. This command outputs the name of the page on which the report got dumped
34
+
* Run ```python main.py test articles_by_size```. It takes two arguments; in this example test refers to `test.wikipedia.org` and `articles_by_size` is the type of statistics you're requesting. This command outputs the name of the page on which the report got dumped
26
35
* To alter the default settings for periodic updates, make changes to the crontab file ```crontab -e```
27
36
28
37
## Adding support for a report
29
-
* To add support for a specific statistics that you would like to see in a report, declare a function in `main.py` and define it in `reports.py`
30
-
* To provide support for translations in a specific language, include the dictionary in `i18n/i18n.py`
38
+
* To add support for a specific statistics that you would like to see in a report, declare a function in `main.py` and define it in `reports.py`
39
+
* To provide support for translations in a specific language, include the dictionary in `i18n/i18n.py`
31
40
32
41
## Contributing
33
42
Bug reports, fixes, and new features are welcomed. If you'd like to contribute code please:
0 commit comments