https://github.com/bearloga/wmf-android-suggested-edits
Jupyter-based dashboard for release of Suggested Edits feature on Wikipedia app for Android
https://github.com/bearloga/wmf-android-suggested-edits
Last synced: about 1 year ago
JSON representation
Jupyter-based dashboard for release of Suggested Edits feature on Wikipedia app for Android
- Host: GitHub
- URL: https://github.com/bearloga/wmf-android-suggested-edits
- Owner: bearloga
- Created: 2019-05-02T14:43:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-05T19:56:37.000Z (over 6 years ago)
- Last Synced: 2025-02-17T11:26:03.426Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 20.1 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Daily report of Suggested Edits v2 release on Android
## Setup
### Python dependencies
First, we need to make sure the Jupyter notebook will be run and converted to HTML correctly:
```bash
pip install -U pip setuptools nbconvert ipython ipykernel \
jupyter jupyter-core jupyter-console jupyter-core jupyter-client jupyterlab
```
Then, we need to install MediaWiki utilities for obtaining the revert rate of title descriptions and image captions:
```bash
pip install -U mwoauth mwtypes mwapi mwreverts
```
### R dependencies
Following [these instructions](https://irkernel.github.io/installation/) for installing the R kernel and registering it with Jupyter:
```R
install.packages("IRkernel")
IRkernel::installspec()
```
Then the packages required for producing the report:
```R
install.packages(c(
"RMySQL", "DBI", "tidyverse", "import", "knitr", "remotes",
"reticulate", # for using MediaWiki Python utils
"ratelimitr", # for throttling MW API calls
"RcppRoll", # for smoothing using rolling average
"hrbrthemes" # for pretty plots
))
remotes::install_github("wikimedia/wikimedia-discovery-wmf")
remotes::install_github("wikimedia/wikimedia-discovery-polloi")
remotes::install_github("thomasp85/patchwork")
```
## Scheduling
On **notebook1004.eqiad.wmnet** `mkdir /srv/published-datasets/wikipedia-android-app-reports` if one does not already exist.
Then `crontab -e`:
```
0 5 * * * bash /path/to/update_publish_notebook.sh
```
to have the script be executed every day at 5AM UTC (for example).