מדריך:Pywikibot/סקריפטים

From mediawiki.org
This page is a translated version of the page Manual:Pywikibot/Scripts and the translation is 42% complete.
Outdated translations are marked like this.

זו רשימה של הבוטים הקיימים עם קישורים לתיאורים שלהם. ייתכן שרשימה זו אינה שלמה. For the complete list refer to the Script Package documentation. רבים מהתסריטים המקושרים באדום וללא דפים נמצאים בתיקיה Pywikibot scripts/. ניתן להריץ סקריפטים בשורת הפקודה באמצעות התבנית הבאה: In Microsoft Windows:

  1. Open the Start menu or press the Windows key + R.
  2. Type cmd or cmd.exe in the Run command box.
  3. Press Enter.

Use the following pattern:

$ python pwb.py [global options] script_name [parameters]

For more information on running scripts, see Manual:Pywikibot/Workshop Materials/How to run basic scripts (self-study) and the related Small wiki toolkits workshop.

סקריפטים גלובליים

עריכת סקריפטים מותר לך להפעיל בכמה ויקים עם דגל בוט גלובלי.

Name Description Code
interwiki.py יוצר או משנה קישורים בין-לשוניים בין פרויקטים core
redirect.py מתקן הפניות כפולות ומוחק הפניות שבורות core

סקריפטים עיקריים של בוט

Name Description Code
add_text.py מוסיף טקסט בחלק העליון או בסוף העמודים core
category.py מנהל קטגוריות core
replace.py עריכות באמצעות החלפת טקסט core
solve_disambiguation.py מתקן דפי הבדל core
upload.py מעלה תמונות לויקי core
weblinkchecker.py מוצא קישורים חיצוניים שבורים core

תוכניות עזר

Name Description Code
clean_sandbox.py בוט זה מנקה ארגז חול על ידי החלפת התוכן הנוכחי בטקסט מוגדר מראש core
cosmetic_changes.py גורם לקוד המקור של הויקי להיראות נקי יותר, המופעל על ידי סקריפטים אחרים core
transferbot.py סקריפט שמיייבא דפים מויקי אחד לויקי אחר core


סקריפטים אחרים של בוטים

Name Description Code
welcome.py משמש לקידום פני משתמשים חדשים core

למפעילי מערכת

Name Description Code
blockpageschecker.py מוחק את כל תבניות ההגנה הנמצאות בדפים שאינם מוגנים בפועל core
delete.py מחיקה מרובה של דפים core
patrol.py סקריפט זה משיג רשימה של שינויים אחרונים ודפים חדשים ומסמן את העריכות כבדוקות על סמך רשימת היתרים core
protect.py הגנה על דפים בהמוניהם core

שנה דפים כלליים

Name Description Code
archivebot.py קישורים לדיון בארכיון core
movepages.py מעביר דף לכותרת אחרת core
pagefromfile.py יוצר דפים מקובץ טקסט core

קטגוריות

Name Description Code
category_redirect.py מפנה דפים מקטגוריה אחת לאחרת core
commonscat.py מוסיף {{Commonscat }} לקטגוריות (או ערכים) בויקיפדיה, אם כבר בויקיפדיה בשפה אחרת יש תבנית כזו core

תמונות

Name Description Code
imagetransfer.py מעתיק תמונות מוויקי לווקי core
image.py Used to change one image to another or remove an image entirely core
unusedfiles.py מוצא מדיה שאינה בשימוש באמצעות Special:Unusedimages core

תבניות

Name Description Code
template.py מחליף תבנית אחת בשנייה, באופן שקל יותר לשימוש מ-replace.py ברוב המקרים core
templatecount.py סופר או מפרט את המקומות שבהם נעשה שימוש בתבניות core

ויקינתונים

Name Description Code
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 סקריפט להוספה המונית של טענות ויקינתונים בהתבסס על מידע שנאסף מתבניות בויקיפדיה core
illustrate_wikidata.py סקריפט להוספת תמונות לפריטי ויקינתונים core
interwikidata.py סקריפט לטיפול בקישורים בין-ויקי: מחבר דפים לפריטי ויקינתונים באמצעות קישורי שפה בדפים core
newitem.py סקריפט ליצירה המונית של פריטי ויקינתונים חדשים core

סקריפטים לא ממוינים

Name Description Code
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 Correct all redirect links in featured pages or only one page of each wiki 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 compattask
misspelling.py מתקן קישורים המכילים שגיאות כתיב נפוצות core
noreferences.py Adds missing ‎<references /> tag and references section if needed core
nowcommons.py סקריפט למחיקת קבצים שנמצאים גם ב-Wikimedia Commons core
parser_function_count.py This script helps to find expensive templates that are subject to be converted to 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 בוט זה משכפל את כל הדפים (ממרחבי שמות ספציפיים) מויקי לוויקי שני בתוך משפחה אחת core
revertbot.py משחזר את העריכות האחרונות של הבוטים שלך בדפים core
titletranslate.py core
watchlist.py Access the bot account's Watchlist core

Non editing scripts

Scripts which do not change wiki pages. These are allowed to run on virtually all wikis.

Name Description Code
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

Maintenance scripts

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

Other scripts

Mostly internal scripts. No normal bots.

Name Description Code
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 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. לא ניתן להפעיל באופן ידני/ישיר, אבל מופעל אוטומטית על ידי maintenanceer.py Uses the irclib, you can download it on GitHub. compattask
speedy_delete.py עובר בדפים למחיקה מהירה, מציג את תוכנם ושואל לכל עמוד האם יש למחוק אותו 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 מוסיף תבנית uncat לתמונות ללא קטגוריות בוויקישיתוף 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 מוסיף או משנה קטגוריות compattask
commons_link.py מוסיף {{Commonscat }} ו{{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 מעתיק תמונות מויקי בויקימדיה לויקישיתוף 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 הצב תבנית בעמודים שאינם מקושרים על ידי דפים אחרים, ולכן הם יתומים 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 מאפשר למפעיל להחליט מה לעשות בקשר לקישורים עצמיים compattask
spamremove.py Script to remove external links that are being or have been spammed compattask
standardize_interwiki.py מעביר קישורי אינטרויקי למיקומים סטנדרטיים 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 ממיר טבלאות HTML לסימון MediaWiki 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 תמונות לפי סיווג תוכן 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 בודק טקסטים המפרים זכויות יוצרים על ידי חיפוש התאמות במנועי החיפוש 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 יוצר קישורים נכנסים מקובץ interwiki.log compattask


External links