Manual:Pywikipediabot/Scripts

From MediaWiki.org
Jump to: navigation, search

This is a list of the existing bots with links to their descriptions. Many of the red linked scripts with no pages are found in the Pywikipediabot main folder.

Pwb icon.svg
Pywikipediabot
scripts
Quick overview
Quick Start Guide
Installation (Mac)
user_config.py

Wikidata
Non-Wikimedia wikis
Basic use
Scripts
Development
Further help

v  d  e

Contents

Name Description Trunk Rewrite

Global bot scripts [edit]

interwiki.py Creates or modifies Interlanguage links between projects
redirect.py Fixes double redirects, and deletes broken redirects

Main bot scripts [edit]

add_text.py Adds text at the top or end of pages
category.py Manages categories
imagecopy.py Copies images from a wikimedia wiki to Commons
replace.py Edits using text replacement
solve_disambiguation.py Fixes disambiguation pages
table2wiki.py Converts HTML tables to MediaWiki markup
upload.py Uploads images to a wiki
weblinkchecker.py Finds broken external links

Auxiliary programs [edit]

clean_sandbox.py This bot cleans a sandbox by replacing the current contents with predefined text.
cosmetic_changes.py Makes the wiki source code look cleaner, invoked by other scripts
login.py Used to log in
version.py Outputs Pywikipedia's revision number and Python's version
lonelypages.py Place a template on pages which are not linked to by other pages, and are therefore lonely
selflink.py Allows the operator to decide what to do about self links; e.g. [[Manual:Pywikipediabot/Scripts]] on the page Manual:Pywikipediabot/Scripts

Other bot scripts [edit]

basic.py This is not a complete bot; rather, it is a template from which simple bots can be made.
copyright.py Checks for text violating copyright by looking for matches in search engines
standardize_interwiki.py Moves interwiki links into standard locations
warnfile.py creates backlinks from a interwiki.log file
welcome.py Used to welcome new users

Change general pages [edit]

archivebot.py Archives discussion threads
delete.py Deletes pages en masse
movepages.py Moves page to another title
pagefromfile.py Creates pages from a text file
standardize notes.py Refactors references and citations

Categories [edit]

catall.py Adds or changes categories
category_redirect.py Redirects pages etc. from one category to another.
commons category redirect.py This bot cleans Commons:Category:Non-empty category redirects by moving all the files, pages and categories from redirected category to the target category.
commonscat.py Adds {{commonscat}} to Wikipedia categories (or articles), if other language wikipedia already has such template
commons link.py Adds {{commonscat}} and {{commons}} to Wikipedia articles, if same name category or gallery exist on Commons.
imagerecat.py Try to find categories for media on Commons
imageuncat.py Program to add uncat template to images without categories at Commons.
makecat.py Uses the links on a page to quickly populate a category

Images [edit]

delinker.py Bot delinks and replaces images
flickrripper.py upload images from Flickr easily
imageharvest.py Copies multiple images to a wiki
imagetransfer.py Copies images to another wiki
image.py Used to change one image to another or remove an image entirely.
inline images.py This bot goes over multiple pages of the home wiki, and looks for images that are linked inline (i.e., they are hosted from an external server and hotlinked, instead of using the wiki's upload function.
panoramiopicker.py upload images from Panoramio easily
unusedfiles.py finds unused media using Special:Unusedimages.

IRC scripts [edit]

maintainer.py
maintcont.py
rciw.py A IRC script to check for Recent Changes through IRC, and to check for interwikis in those recently modified articles. Can not be run manually/directly, but is run automatically by maintainer.py.
rcsort.py
wikilogbot.py This script makes it easy to log messages from IRC to a wiki page.

Page protection [edit]

blockpageschecker.py Deletes any protection templates that are on pages which aren't actually protected.
protect.py Protect and unprotect pages en masse.

Templates [edit]

template.py Replaces one template with another, in a way that is easier to use than replace.py in most instances
templatecount.py Counts or lists the instances where templates are used

Wikidata [edit]

claimit.py A script to mass add Wikidata claims to a lot of items based on pages on Wikipedia
harvest_template.py A script to mass add Wikidata claims based on information harvested from Wikipedia templates.

Unsorted scripts [edit]

articlenos.py Displays the ordinal number of the new articles being created visible on the Recent Changes list.
BeautifulSoup.py
capitalize_redirects.py Bot to create capitalized redirects where the first character of the first word is uppercase and the remaining characters and words are lowercase.
casechecker.py Script to enumerate all pages on the wiki and find all titles with mixed latin and cyrilic alphabets.
censure.py Bad word checker bot
cfd.py This script processes the Categories for discussion working page. It parses out the actions that need to be taken as a result of CFD discussions (as posted to the working page by an administrator) and performs them.
checkimages.py Script to check recently uploaded files. This script checks if a file description is present and if there are other problems in the image's description.
config.py
copyright_clean.py
copyright_put.py
create_categories.py Program to batch create categories.
daemonize.py
deledpimage.py
disambredir.py Goes through the disambiguation pages, checks their links, and asks for each link that goes to a redirect page whether it should be replaced.
diskcache.py
djvutext.py Extracts OCR text from djvu files and uploads onto pages in the "Page" namespace on Wikisource.
editarticle.py Edit a Wikipedia article with your favourite editor.
extract_wikilinks.py
family.py
featured.py
fixing redirects.py
followlive.py
get.py Very simple script which gets a page and writes its contents to standard output. This makes it possible to pipe the text to another process.
gui.py A TKinter window with a unicode text field where the user can e.g. edit the contents of an article.
interwiki graph.py
isbn.py This script goes over multiple pages of the home wiki, and reports invalid ISBN numbers, converts to ISBN-13 from ISBN-10 and places hyphens.
logindata.py
match images.py
misspelling.py
mysql autoconnection.py
noreferences.py Adds missing <references /> tag and references section if needed
nowcommons.py
pageimport.py
piper.py This is a bot that uses external filtering programs to munge the article text.
reflinks.py
revertbot.py
saveHTML.py
simple family.py
spamremove.py
speedy delete.py
spellcheck.py
splitwarning.py
statistics in wikitable.py
testfamily.py
titletranslate.py
udp-log.py
unlink.py
user-config.py
user-config.py.example
userlib.py
us-states.py
watchlist.py
wikicomserver.py
wikipediatools.py
wiktionary.py
xmltest.py

Config scripts [edit]

fixes.py Stores predefined replacements for replace.py.
generate family files.py Creates a new family file.
generate user files.py Creates user-config.py and user-fixes.py.
user-fixes.py Stores predefined replacements for replace.py.

Maintenance scripts [edit]

touch.py Purge a page in order to refresh relations and not waiting for the queue

Libraries [edit]

api.py Interface functions to Mediawiki's api.php
catlib.py Library to work with category pages
date.py Library for parsing date pages, dates and digits
exceptions.py Exception classes used throughout the framework
http.py Basic HTTP access interface
i18n.py Various i18n functions, both for the internal translation system and for TranslateWiki-based translations
logentries.py Objects representing Mediawiki log entries
pagegenerators.py page generating library
plural.py plural rules for i18n
pywikibot.py The main rewrite framework library the other scripts use
textlib.py Functions for manipulating wiki-text
threadedhttp.py Httplib2 threaded cookie layer
throttle.py throttle class library to slow down wiki read and/or write rate
tools.py Miscellaneous helper functions for threads, lists and iterators
wikipedia.py The main trunk framework library the other scripts use
query.py API query library
xmlreader.py Reading and parsing XML dump files

Deprecated scripts [edit]

test.py Tests login status. Use login.py -test instead
touchall.py When a record needs to be changed in order to refresh relations. Use touch.py instead.

External links [edit]