There are two folders of scripts, one for Pywikibot and another for WikibaseIntegrator.
Pywikibot is suitable for performing bulk editing actions on Bahaipedia, Bahai.works and those related wiki's.
WikibaseIntegrator is intended for use with Wikibase style websites like Bahaidata.org or Wikidata.org.
Follow the steps below to install and set up WikibaseIntegrator.
Navigate to your project directory and run:
python -m venv wikibase_env
-
Windows:
wikibase_env\Scripts\activate
-
Linux:
source wikibase_env/bin/activate
Run the following command to install WikibaseIntegrator:
python -m pip install wikibaseintegrator
To verify that WikibaseIntegrator has been installed correctly, run:
python -c "import wikibaseintegrator; print(wikibaseintegrator.__version__)"
To download the specific bot scripts you need, navigate to the wikibaseintegrator folder in the repository. You can download individual scripts by selecting them and clicking on the Download button or by cloning the entire repository.
For example, to download import-articles.py
:
- Visit the import-articles.py file.
- Right-click on Raw and select Save Link As.
python path/to/import-articles.py