An app that checks for deadlinks on Wikipedia. its is currently deployed at https://deadlinkchecker.toolforge.org/
The documentation of the tool is available on Meta at https://meta.wikimedia.org/wiki/Dead_Link_Checker
- Clone the repository
git clone https://github.com/WikiMovimentoBrasil/deadlinkchecker.git
- Enter the project directory
cd deadlinkchecker
- Create a virtual environment
python -m venv venv
- Activate the virtual environmeny
.\venv\Scripts\activate
- Install project dependencies
pip install -r requirements.txt
- create a
.env
file in the root of your project and add to it the following variables
SOCIAL_AUTH_MEDIAWIKI_KEY= Your oauth key from the oauth consumer registration
SOCIAL_AUTH_MEDIAWIKI_SECRET= Your oauth secret from the oauth consumer registration
SOCIAL_AUTH_MEDIAWIKI_URL=https://meta.wikimedia.org/w/index.php
SESSION_SECRET= a randomly generated secret value
TOOL_TOOLSDB_USER= Tools database user
TOOL_TOOLSDB_PASSWORD= Tools database secret
REDIS_URL= Redis URL
REDIS_PREFIX= Redis key prefix
- Start the app in development
uvicorn app:app --reload