Skip to content

bahaipedia/bot-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

botscripts

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.

Installing Pywikibot

Installing WikibaseIntegrator

Follow the steps below to install and set up WikibaseIntegrator.

1. Create a Virtual Environment

Navigate to your project directory and run:

python -m venv wikibase_env

2. Activate the Virtual Environment

  • Windows:

    wikibase_env\Scripts\activate
  • Linux:

    source wikibase_env/bin/activate

3. Install WikibaseIntegrator

Run the following command to install WikibaseIntegrator:

python -m pip install wikibaseintegrator

4. Verify the Installation

To verify that WikibaseIntegrator has been installed correctly, run:

python -c "import wikibaseintegrator; print(wikibaseintegrator.__version__)"

5. Download the Scripts You Need

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:

  1. Visit the import-articles.py file.
  2. Right-click on Raw and select Save Link As.

6. Run the scripts

python path/to/import-articles.py

About

Useful programs for performing bulk actions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages