Skip to main content
Python Top language Pywikibot-scripts release wheel Total downloads Monthly downloads Last commit

This is a package to include robots for MediaWiki wikis like Wikipedia.

Some example robots are included.

These programs can actually modify the live wiki on the net, and proper wiki-etiquette should be followed before running it on any wiki.

To get started on proper usage of the bot framework, refer to Manual:Pywikibot.

The contents of the package

Bots and scripts

Bots and Scripts

add_text.py

Adds text at the top or end of pages.

archivebot.py

Archives discussion threads.

basic.py

Is a template from which simple bots can be made.

blockpageschecker.py

Deletes any protection templates that are on pages which aren’t actually protected.

category.py

Add a category link to all pages mentioned on a page, change or remove category tags.

category_graph.py

Visualizes category hierarchy

category_redirect.py

Maintain category redirects and replace links to redirected categories.

change_pagelang.py

Changes the content language of pages.

checkimages.py

Check recently uploaded files. Checks if a file description is present and if there are other problems in the image’s description.

claimit.py

Adds claims to Wikidata items based on categories.

clean_sandbox.py

This bot resets a sandbox with predefined text.

commonscat.py

Adds {{commonscat}} to Wikipedia categories (or articles), if other language Wikipedia already has such a template.

commons_information.py

Insert a language template into the description field.

coordinate_import.py

Coordinate importing script.

cosmetic_changes.py

Can do slight modifications to a wiki page source code such that the code looks cleaner.

data_ingestion.py

A generic bot to do batch uploading to Commons.

delete.py

This script can be used to delete pages en masse.

delinker.py

Unlink file references of deleted images.

djvutext.py

Extracts OCR text from djvu files and uploads onto pages in the “Page” namespace on Wikisource.

download_dump.py

Downloads dumps from dumps.wikimedia.org

fixing_redirects.py

Correct all redirect links of processed pages.

harvest_template.py

Template harvesting script.

illustrate_wikidata.py

Bot to add images to Wikidata items.

image.py

Script to replace transclusions of files.

imagetransfer.py

Given a wiki page, check the interwiki links for images, and let the user choose among them for images to upload.

interwiki.py

A robot to check interwiki links on all pages (or a range of pages) of a wiki.

interwikidata.py

Script to handle interwiki links based on Wikibase.

listpages.py

Print a list of pages, defined by a page generator.

misspelling.py

Similar to solve_disambiguation.py. It is supposed to fix links that contain common spelling mistakes.

movepages.py

Bot that can move pages to another title.

newitem.py

Script creates new items on Wikidata based on criteria.

noreferences.py

Searches for pages where <references /> is missing although a <ref> tag is present, and in that case adds a new references section.

nowcommons.py

This bot can delete images with NowCommons template.

pagefromfile.py

This bot takes its input from a file that contains a number of pages to be put on the wiki.

parser_function_count.py

Find expensive templates that are subject to be converted to Lua.

patrol.py

Obtains a list pages and marks the edits as patrolled based on a whitelist.

protect.py

Protect and unprotect pages en masse.

redirect.py

Fix double redirects and broken redirects. Note: solve_disambiguation also has functions which treat redirects.

reflinks.py

Search for references which are only made of a link without title and fetch the html title from the link to use it as the title of the wiki link in the reference.

replace.py

Replaces text on pages using command-line pairs, a pairs file, or predefined fixes.

replicate_wiki.py

Replicates pages in wiki to a second wiki within family

revertbot.py

Script that can be used for reverting certain edits.

solve_disambiguation.py

Interactive robot doing disambiguation.

speedy_delete.py

Help sysops to quickly check and/or delete pages listed for speedy deletion.

template.py

Change one template (that is {{…}}) into another.

templatecount.py

Display the list of pages transcluding a given list of templates.

touch.py

Bot goes over all pages of the home wiki, and edits them without changes.

transferbot.py

Transfers pages from a source wiki to a target wiki.

transwikiimport.py

Transfers pages from a source wiki to a target wiki including edit history using Import.

unusedfiles.py

Bot appends some text to all unused images and other text to the respective uploaders.

unlink.py

This bot unlinks a page on every page that links to it.

upload.py

Upload an image to a wiki.

watchlist.py

Allows access to the account’s watchlist.

weblinkchecker.py

Check if external links are still working.

welcome.py

Script to welcome new users.

Maintenance

maintenance

Framework helper scripts

addwikis.py

Script to add wikis to a family file.

cache.py

Script for showing and deleting API cache.

colors.py

Utility to show pywikibot colors.

make_i18n_dict.py

Generate an i18n file from a given script.

unidata.py

Updates _first_upper_exception_dict in tools.unidata

External packages could be required with Pywikibot:

The pwb.py wrapper scripts informs about the requirement and how to install.

More precise information, and a list of the options that are available for the various programs, can be retrieved by running the bot with the -help parameter, e.g.:

python pwb.py interwiki -help

** Outdated and deleted scripts can be recovered.** Refer Outdated core scripts and Outdated compat scripts in our documentation: https://doc.wikimedia.org/pywikibot/master/scripts/index.html#script-descriptions

Metadata

Release files for pywikibot-scripts 11.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pywikibot-scripts 11.8.0
File Interpreter ABI Platform
pywikibot_scripts-11.8.0-py3-none-any.whl Python 3 none any Details

Release files / pywikibot_scripts-11.8.0-py3-none-any.whl

Download URL pywikibot_scripts-11.8.0-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
af300a61a83bc99d7639ca91d6a1f582c620110e6f3aa011aaa4d678b4f52ba6
BLAKE2b-256 checksum
How to use checksums
9955235c96e427ade62251139e31fafec01ba4355903d6a65bf55128e9d5c9f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.15.0a1

Release history Release notifications | RSS feed

This release

11.8.0 This release

1 release file

11.7.0

1 release file

11.6.0

1 release file

11.5.0

1 release file

11.4.0

1 release file

11.3.0

1 release file

11.2.0

1 release file

11.1.0

1 release file

11.0.0

1 release file

10.7.0

1 release file

10.5.0

1 release file

10.4.0

1 release file

10.3.0

1 release file

10.2.0

1 release file

10.1.0

1 release file

10.0.0

1 release file

9.6.1

1 release file

9.6.0

1 release file

9.5.0

1 release file

9.4.1

1 release file

9.4.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page