Manual:Pywikibot/Skrip
| Pywikibot |
|---|
|
Ini adalah daftar bot yang ada saat ini dengan pranala ke deskripsinya.
Daftar ini mungkin tidak lengkap.
Untuk daftar lengkap rujuk kepada dokumentasi Paket Skrip.
Banyak dari skrip dengan pranala merah tanpa halaman dapat ditemukan di folder scripts/ Pywikibot.
Skrip dapat dijalankan di baris perintah.
In Microsoft Windows:
- Open the Start menu or press the Windows key + R.
- Type cmd or cmd.exe in the Run command box.
- Press Enter.
Gunakan pola berikut:
$ python pwb.py [global options] script_name [parameters]
Untuk informasi lebih lanjut tentang menjalankan skrip, lihat Manual:Pywikibot/Workshop Materials/How to run basic scripts (self-study) dan Lokakarya alat perlengkapan untuk wiki kecil
Skrip bot global
Menyunting skrip yang dibolehkan untuk dijalankan di beberapa wiki dengan tanda bot global
| Name | Description | Code |
|---|---|---|
| interwiki.py | Menciptakan atau mengubah pranala antarbahasa antara proyek-proyek | core |
| redirect.py | Membetulkan pengalihan ganda, dan menghapus pengalihan rusak | core |
Skrip bot utama
| Name | Description | Code |
|---|---|---|
| add_text.py | Menambahkan teks di bagian atas atau akhir halaman | core |
| category.py | Mengelola kategori | core |
| replace.py | Menyunting menggunakan penggantian teks | core |
| solve_disambiguation.py | Memperbaiki halaman disambiguasi | core |
| upload.py | Mengunggah gambar ke sebuah wiki | core |
| weblinkchecker.py | Menemukan pranala luar rusak | core |
Program pembantu
| Name | Description | Code |
|---|---|---|
| clean_sandbox.py | Bot ini membersihkan bak pasir dengan mengganti isi saat ini dengan teks yang sudah ditentukan sebelumnya | core |
| cosmetic_changes.py | Membuat kode sumber wiki terlihat lebih rapi, digunakan oleh skrip yang lain. | core |
| transferbot.py | Skrip yang mentransfer halaman dari wiki sumber ke wiki tujuan | core |
Skrip bot lainnya
| Name | Description | Code |
|---|---|---|
| welcome.py | Digunakan untuk menyambut pengguna baru | core |
Administratif
| Name | Description | Code |
|---|---|---|
| blockpageschecker.py | Menghapus templat perlindungan pada halaman yang sebenarnya tidak dilindungi | core |
| delete.py | Menghapus halaman-halaman secara masal | core |
| patrol.py | Skrip ini mengambil daftar perubahan terbaru dan halaman baru dan menandai suntingan tersebut sebagai terpatroli berdasarkan pada daftar putih | core |
| protect.py | Melindungi dan membuka perlindungan secara masal | core |
Mengubah halaman umum
| Name | Description | Code |
|---|---|---|
| archivebot.py | Mengarsipkan utas diskusi | core |
| movepages.py | Memindahkan halaman ke judul lain | core |
| pagefromfile.py | Membuat halaman dari berkas teks | core |
Kategori
| Name | Description | Code |
|---|---|---|
| category_redirect.py | Mengalihkan halaman dst. dari satu kategori ke kategori lain | core |
| commonscat.py | Menambahkan {{Commonscat}} ke kategori Wikipedia (atau artikel), jika Wikipedia bahasa lainnya sudah memiliki tempat itu | core |
Gambar
| Name | Description | Code |
|---|---|---|
| imagetransfer.py | Menyalin gambar ke wiki lain | core |
| image.py | Digunakan untuk mengubah satu gambar ke yang lain atau menghapus gambar sepenuhnya | core |
| unusedfiles.py | Menemukan media yang tidak dipakai menggunakan Special:Unusedimages | core |
Templat
| Name | Description | Code |
|---|---|---|
| template.py | Mengganti satu templat dengan yang lain, dengan cara yang lebih mudah digunakan dibandingkan replace.py dalam kebanyakan kasus | core |
| templatecount.py | Menghitung atau membuat daftar halaman yang menggunakan templat tertentu | core |
Wikidata
| Name | Description | Code |
|---|---|---|
| claimit.py | Skrip untuk menambahkan klaim Wikidata secara masal ke banyak item berdasarkan halaman di Wikipedia | core |
| coordinate_import.py | Skrip untuk mengimpor koordinat secara masal dari Wikipedia ke Wikidata | core |
| harvest_template.py | Skrip untuk menambahkan klaim Wikidata secara masal berdasarkan informasi yang diperoleh dari templat Wikipedia | core |
| illustrate_wikidata.py | Skrip untuk menambahkan gambar ke item Wikidata | core |
| interwikidata.py | Skrip untuk menangani pranala interwiki: menghubungkan halaman ke item Wikidata menggunakan paranal bahasa di artikel | core |
| newitem.py | Skrip untuk membuat item Wikidata baru secara masal | core |
Skrip belum disortir
| Name | Description | Code |
|---|---|---|
| checkimages.py | Skrip untuk memeriksa berkas yang baru diunggah. Skrip ini memeriksa apakah deskripsi berkas ada dan apakah ada masalah lain dalam deskripsi gambar | core |
| daemonize.py | core | |
| djvutext.py | Mengekstrak teks OCR dari berkas djvu dan mengunggah ke halaman di ruang nama "Halaman" di Wikisource | core |
| fixing_redirects.py | Correct all redirect links in featured pages or only one page of each wiki | core |
| gui.py | Jendela TKinter dengan isian teks Unicode di mana pengguna dapat (misalnya) menyunting isi artikel | core |
| interwiki_graph.py | core | |
| misspelling.py | Skrip ini memperbaiki pranala yang berisi kesalahan ejaan yang umum | core |
| noreferences.py | Tambahkan tag <references /> yang hilang dan bagian referensi jika diperlukan
|
core |
| nowcommons.py | Skrip untuk menghapus berkas yang juga ada di Wikimedia Commons | core |
| parser_function_count.py | Skrip ini membantu menemukan templat tidak efisien yang dapat dikonversi ke 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 | Mengembalikan suntingan terkini bot Anda | core |
| titletranslate.py | core | |
| tracking_param_remover.py | Script to remove tracking URL parameters from external links. | core |
| watchlist.py | Access the bot account's Watchlist | core |
Skrip yang tidak menyunting
Skrip yang tidak mengubah halaman wiki. Ini diizinkan untuk berjalan pada hampir semua wiki.
| Name | Description | Code |
|---|---|---|
| listpages.py | Digunakan untuk membuat daftar halaman menggunakan pagegenerator | core |
| login.py | Digunakan untuk masuk (dan keluar)log | core |
| touch.py | Touch/purge a page in order to refresh relations without waiting for the queue | core |
Skrip pemeliharaan
Helper scripts for maintenance and conversion scripts
| Name | Description | Code |
|---|---|---|
| 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 |
Skrip lain-lain
Kebanyakan adalah skrip internal. Bukan bot normal.
| Name | Description | Code |
|---|---|---|
| basic.py | Ini bukan bot lengkap; tetapi ini adalah templat yang dapat digunakan untuk membuat bot sederhana | 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 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
| Name | Description | Code |
|---|---|---|
| maintainer.py | A wiki-maintainer script that shares tasks between workers, requires no intervention. Uses the irclib, you can download it on GitHub.
|
compattask |
| maintcont.py | The controller bot for maintainer.py. | compattask |
| 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. Uses the irclib, you can download it on GitHub.
|
compattask |
| speedy_delete.py | Goes through pages for speedy deletion, shows their content, and asks for each page whether it should be deleted | core |
| followlive.py | Script to follow new articles on a Wikipedia and tag them with a template or perform other actions | compattask |
| data_ingestion.py | A generic bot to do data ingestion (batch uploading) to Commons | compattask |
| imageuncat.py | Program to add uncat template to images without categories at Commons | compattask |
| 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 | compattask |
| casechecker.py | Script to enumerate all pages on the wiki and find all titles with mixed latin and cyrilic alphabets | compattask |
| catall.py | Adds or changes categories | compattask |
| commons_link.py | Adds {{Commonscat}} and {{Commons}} to Wikipedia articles, if same name category or gallery exist on Commons | compattask |
| create_categories.py | Program to batch create categories | compattask |
| 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 | compattask |
| editarticle.py | Edit a Wikipedia article with your favourite editor | compattask |
| flickrripper.py | Upload images from Flickr easily | compattask |
| freebasemappingupload.py | A script to upload the mappings of Freebase to Wikidata | compattask |
| imagecopy.py | Copies images from a Wikimedia wiki to Commons | compattask |
| imagecopy_self.py | Script to copy self published files from the English Wikipedia to Wikimedia Commons | compattask |
| imageharvest.py | Copies multiple images to a wiki | compattask |
| imagerecat.py | Try to find categories for media on Commons | compattask |
| 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 | compattask |
| lonelypages.py | Place a template on pages which are not linked to by other pages, and are therefore lonely | compattask |
| makecat.py | Uses the links on a page to quickly populate a category | compattask |
| match_images.py | Program to match two images based on histograms | compattask |
| 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 | compattask |
| piper.py | This is a bot that uses external filtering programs to munge the article text | compattask |
| selflink.py | Allows the operator to decide what to do about self links | compattask |
| spamremove.py | Script to remove external links that are being or have been spammed | compattask |
| standardize_interwiki.py | Moves interwiki links into standard locations | compattask |
| states_redirect.py | Create country sub-division redirect pages | compattask |
| surnames_redirects.py | Bot to create redirects based on name order | compattask |
| table2wiki.py | Converts HTML tables to MediaWiki markup | compattask |
| unlink.py | This bot unlinks a page on every page that links to it | compattask |
| wikisourcetext.py | This bot applies to Wikisource sites to upload text from text layers of files in various formats, including pdf | compattask |
| catimages.py | Image by content categorization | compattask |
| censure.py | Bad word checker bot | compattask |
| 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 | Checks for text violating copyright by looking for matches in search engines | compattask |
| copyright_clean.py | Script to remove on wiki pages reports of copyright.py | compattask |
| copyright_put.py | Script to put reports of copyright.py to wiki page | compattask |
| deledpimage.py | Script to remove EDP images in non-article namespaces | compattask |
| 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) | compattask |
| overcat_simple_filter.py | A bot script to do some simple over categorization filtering | compattask |
| panoramiopicker.py | Script to copy a Panoramio set to image repository (Commons) | |
| spellcheck.py | This bot spellchecks wiki pages | compattask |
| 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 doing substitutions of tags within wiki page content | |
| tag_nowcommons.py | This script tags files available at Commons with the Nowcommons template | compattask |
| warnfile.py | creates backlinks from an interwiki.log file | compattask |
Pranala luar
- Pywikibot Scripts Descriptions
- Pywikibot package content of framework