Manual:Pywikibot/スクリプト
これは、既存のボットとその説明へのリンクの一覧です。
This list might be incomplete.
For the complete list refer to the Script Package documentation.
ページがない赤リンクのスクリプトの多くは、Pywikibot の scripts/
フォルダーにあります。
スクリプトは、以下のパターンを使用してコマンドラインで実行できます:
$ python pwb.py [global options] script_name [parameters]
グローバル ボット スクリプト
Editing scripts you are allowed to run on several wikis with a global bot flag.
名前 | 説明 | コード |
---|---|---|
interwiki.py | Creates or modifies Interlanguage links between projects | core |
redirect.py | Fixes double redirects, and deletes broken redirects | core |
メイン ボット スクリプト
名前 | 説明 | コード |
---|---|---|
add_text.py | ページの先頭と最後にテキストを追加 | core |
category.py | Manages categories | core |
replace.py | Edits using text replacement | core |
solve_disambiguation.py | Fixes disambiguation pages | core |
upload.py | Wikiに画像をアップロードする | core |
weblinkchecker.py | 壊れた外部リンクの発見 | core |
補助プログラム
名前 | 説明 | コード |
---|---|---|
clean_sandbox.py | 現在のコンテンツを定義されたテキストで置き換えることでサンドボックスの砂ならしをします。 | core |
cosmetic_changes.py | Makes the wiki source code look cleaner, invoked by other scripts | core |
transferbot.py | ソースウィキからターゲットのウィキにページを転送するスクリプト。 | core |
その他のボット スクリプト
名前 | 説明 | コード |
---|---|---|
welcome.py | 新規利用者にウェルカムメッセージを追加 | core |
管理
名前 | 説明 | コード |
---|---|---|
blockpageschecker.py | Deletes any protection templates that are on pages which aren't actually protected | core |
delete.py | ページの一括削除 | core |
patrol.py | This script obtains a list of recent changes and new pages and marks the edits as patrolled based on a whitelist | core |
protect.py | ページの一括保護/解除 | core |
speedy_delete.py | Goes through pages for speedy deletion, shows their content, and asks for each page whether it should be deleted | core |
全般的なページの変更
名前 | 説明 | コード |
---|---|---|
archivebot.py | 議論スレッドを過去ログ化 | core |
movepages.py | ページを移動 | core |
pagefromfile.py | テキストファイルからページを作成 | core |
カテゴリ
名前 | 説明 | コード |
---|---|---|
category_redirect.py | ページなどをあるカテゴリから別カテゴリに転送する | core |
commonscat.py | Adds {{commonscat}} to Wikipedia categories (or articles), if other language Wikipedia already has such template | core |
imageuncat.py | コモンズでカテゴリの付与されていない画像にuncatテンプレートを追加 | core |
画像
名前 | 説明 | コード |
---|---|---|
data_ingestion.py | A generic bot to do data ingestion (batch uploading) to Commons | core |
imagetransfer.py | Copies images to another wiki | core |
image.py | Used to change one image to another or remove an image entirely | core |
unusedfiles.py | Finds unused media using Special:Unusedimages | core |
IRC スクリプト
IRC (Internet Relay Chat) Bots, all using the irclib
, you can download it on GitHub.
全スクリプトが実験状態です。
名前 | 説明 | コード |
---|---|---|
maintainer.py | A wiki-maintainer script that shares tasks between workers, requires no intervention | compatタスク |
maintcont.py | The controller bot for maintainer.py | compatタスク |
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 | compatタスク |
テンプレート
名前 | 説明 | コード |
---|---|---|
template.py | replace.py よりも使いやすい方法であるテンプレートを別テンプレートに置き換え | core |
templatecount.py | テンプレートの使用インスタンスをカウントまたはリストアップ | core |
ウィキデータ
名前 | 説明 | コード |
---|---|---|
claimit.py | A script to mass add Wikidata claims to a lot of items based on pages on Wikipedia | core |
coordinate_import.py | A script to mass import coordinates from Wikipedia to Wikidata | core |
harvest_template.py | A script to mass add Wikidata claims based on information harvested from Wikipedia templates | core |
illustrate_wikidata.py | ウィキデータ項目に画像を追加する | core |
interwikidata.py | ページにある言語間リンクを使ってページをウィキデータ項目にコネクト | core |
newitem.py | 新しいWikidata項目を大量に作成 | core |
ソートされていないスクリプト
名前 | 説明 | コード |
---|---|---|
checkimages.py | 最近アップロードされたファイルをチェック 画像の説明の存在やその問題を確認します | core |
daemonize.py | core | |
djvutext.py | Extracts OCR text from djvu files and uploads onto pages in the "Page" namespace on Wikisource | core |
fixing_redirects.py | 特集ページのリダイレクトを全て修正したり各ウィキ1ページのみ修正する | core |
gui.py | A TKinter window with a Unicode text field where the user can e.g. edit the contents of an article | core |
interwiki_graph.py | core | |
match_images.py | Script to match two images based on histograms | core |
misspelling.py | This script fixes links that contain common spelling mistakes | core |
noreferences.py | Adds missing <references /> tag and references section if needed
|
core |
nowcommons.py | Script to delete files that are also present on Wikimedia Commons | core |
parser_function_count.py | Luaに変換する必要のあるテンプレートを検索 | core |
reflinks.py | A bot adding the title of linked web pages to bare external links; see w:User:DumZiBoT/refLinks by the original owner, cf. Archived Pages | core |
replicate_wiki.py | This bot replicates all pages (from specific namespaces) in a wiki to a second wiki within one family | core |
revertbot.py | Revert your bots recent edits to pages | core |
titletranslate.py | core | |
watchlist.py | Access the bot account's Watchlist | core |
followlive.py | Script to follow new articles on a Wikipedia and tag them with a template or perform other actions | core |
編集以外のスクリプト
Scripts which do not change wiki pages. These are allowed to run on virtually all wikis.
名前 | 説明 | コード |
---|---|---|
listpages.py | Used to list pages using pagegenerators | core |
login.py | Used to log in (and log out) | core |
touch.py | Touch/purge a page in order to refresh relations without waiting for the queue | core |
メンテナンス スクリプト
Helper scripts for maintenance and conversion scripts
名前 | 説明 | コード |
---|---|---|
cache.py | Show and cleanup API cache folder | core |
colors.py | Show colored output of Pywikibot scripts | core |
update_script.py | Helper script to convert compat 1.0 scripts to the new core 3+ framework | core |
download_dump.py | Download Wikimedia dump file from https://dumps.wikimedia.org | core |
make_i18n_dict.py | Generate a i18n file from a given script | core |
wikimedia_sites.py | Updates the language lists in Wikimedia family files | core |
その他のスクリプト
ほとんどが内部スクリプトです。 No normal bots.
名前 | 説明 | コード |
---|---|---|
basic.py | This is not a complete bot; rather, it is a template from which simple bots can be made | core |
generate_family_file.py | This script generates a family file from a given URL | core |
generate_user_files.py | Script to create user files (user-config.py , user-fixes.py ) | core |
pwb.py | Wrapper script to use framework in 'directory' mode as cronjob or wrapper script | core |
setup.py | Installer script for Pywikibot 3+ framework | core |
shell.py | Spawns an interactive Python shell | core |
version.py | Outputs Pywikibot's revision number and Python's version | core |
Outdated core scripts
This list contains outdated scripts from core banch which aren’t supported any longer. They are either archived or deleted. Feel free to reactivate any script at any time by creating a Phabricator task: Recovery Request
名前 | 説明 | コード |
---|---|---|
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 | core |
casechecker.py | Script to enumerate all pages on the wiki and find all titles with mixed latin and cyrilic alphabets | core |
catall.py | カテゴリを追加・変更 | core |
commons_link.py | Adds {{commonscat}} and {{commons}} to Wikipedia articles, if same name category or gallery exist on Commons | core |
create_categories.py | カテゴリの一括作成 | core |
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 | core |
editarticle.py | お好みのエディターで記事を編集 | core |
flickrripper.py | Upload images from Flickr easily | core |
freebasemappingupload.py | A script to upload the mappings of Freebase to Wikidata | core |
imagecopy.py | Copies images from a Wikimedia wiki to Commons | core |
imagecopy_self.py | Script to copy self published files from the English Wikipedia to Wikimedia Commons | core |
imageharvest.py | Copies multiple images to a wiki | core |
imagerecat.py | コモンズでメディアのカテゴリを探す | core |
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 | core |
lonelypages.py | 他のページからリンクされていない孤立したページにテンプレートを配置 | core |
makecat.py | ページ上のリンクを利用してカテゴリを素早く表示 | core |
match_images.py | Program to match two images based on histograms | core |
ndashredir.py | Collect articles that have n dash or m dash character in their title and create a redirect to them from the corresponding hyphenated title | core |
piper.py | This is a bot that uses external filtering programs to munge the article text | core |
selflink.py | セルフリンクの扱いをオペレーターが決定できるようにする | core |
spamremove.py | Script to remove external links that are being or have been spammed | core |
standardize_interwiki.py | インターウィキリンクを指定位置に移動 | core |
states_redirect.py | Create country sub-division redirect pages | core |
surnames_redirects.py | Bot to create redirects based on name order | core |
table2wiki.py | HTMLテーブルをWikiマークアップ記法に変換する | core |
unlink.py | This bot unlinks a page on every page that links to it | core |
wikisourcetext.py | This bot applies to Wikisource sites to upload text from text layers of files in various formats, including pdf | core |
Outdated compat scripts
This list contains outdated scripts from compat banch which aren’t supported any longer. They are either archived or deleted. Feel free to reactivate any script at any time by creating a Phabricator task: Phabricator Task
名前 | 説明 | コード |
---|---|---|
catimages.py | コンテンツ別の画像の分類 | compatタスク |
censure.py | 不適切な文言を検出する | compatタスク |
cfd.py | This script processes the Categories for discussion working pages | |
commons_category_redirect.py | Script to clean up non-empty catecory redirect category on Commons | |
copyright.py | 検索エンジンでの検索結果から著作権違反のコンテンツを探します | compatタスク |
copyright_clean.py | Script to remove on wiki pages reports of copyright.py | compatタスク |
copyright_put.py | Script to put reports of copyright.py to wiki page | compatタスク |
deledpimage.py | 記事名前空間以外のEDP画像を削除 | compatタスク |
get.py | Get a page and writes its contents to standard output | |
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) | compatタスク |
overcat_simple_filter.py | 簡単なオーバーカテゴライズフィルタリングを行います | compatタスク |
panoramiopicker.py | Script to copy a Panoramio set to image repository (Commons) | |
spellcheck.py | This bot spellchecks wiki pages | compatタスク |
splitwarning.py | Splits a interwiki.log file into chunks of warnings separated by language | |
standardize_notes.py | This bot will standardize footnote references | |
statistics_in_wikitable.py | This bot renders siteinfo statistics in a table on a wiki page | |
subster.py | Script which will does substitutions of tags within wiki page content | |
tag_nowcommons.py | This script tags files available at Commons with the Nowcommons template | compatタスク |
warnfile.py | interwiki.logファイルからのバックリンクを作成 | compatタスク |
外部リンク
- Pywikibot Scripts Descriptions
- Pywikibot package content of framework