You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

PAWS/PAWS and Pywikibot: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>SRodlund
m (SRodlund moved page User:SRodlund/PAWS (staging)/pagedesign/PAWS and Pywikibot to PAWS/PAWS and Pywikibot without leaving a redirect: Moving staged pages to Main)
 
imported>Daniel Mietchen
(→‎Overview: copyedits)
Line 4: Line 4:


== Overview ==
== Overview ==
[[mw:Manual:Pywikibot|Pywikibot]] is a [[en:Python_(programming_language)#Libraries|Python library]] and collection of tools that automate work on wikis. Originally designed for Wikipedia, Pywikibot is now used throughout the Wikimedia Foundation's projects and on many other MediaWiki wikis.  
[[mw:Manual:Pywikibot|Pywikibot]] is a [[:en:Python_(programming_language)#Libraries|Python library]] and collection of tools that automate work on wikis. Originally designed for Wikipedia, Pywikibot is now used throughout the Wikimedia Foundation's projects and on many other MediaWiki wikis.  


This page will help you understand what you can do with Pywikibot in PAWS and provides a link to a notebook based tutorial that you can follow to learn how to perform some basic tasks on wikis.
This page will help you understand what you can do with Pywikibot in PAWS and provides a link to a notebook based tutorial that you can follow to learn how to perform some basic tasks on wikis.
Line 11: Line 11:
If you want to perform maintenance and tasks on wikis that would be difficult to do manually or learn more about wikis you are working with, Pywikibot can be very useful to you. Some examples include giving you the ability to create multiple pages at once, add text and categories, add labels to Wikidata, and much more.  
If you want to perform maintenance and tasks on wikis that would be difficult to do manually or learn more about wikis you are working with, Pywikibot can be very useful to you. Some examples include giving you the ability to create multiple pages at once, add text and categories, add labels to Wikidata, and much more.  


Because Pywikibot is very versitle and makes it possible to perform many different types of tasks on wikis, you may find it useful to explore existing notebooks.  
Because Pywikibot is very versatile and makes it possible to perform many different types of tasks on wikis, you may find it useful to explore existing notebooks.  


* [[User:SRodlund/PAWS_(staging)/PAWS_examples_and_recipes#Notebooks_that_use_Pywikibot | This currated page of example notebooks, how-tos, and recipes]] provides a diverse selection of notebooks that have been created by PAWS users.  
* [[User:SRodlund/PAWS_(staging)/PAWS_examples_and_recipes#Notebooks_that_use_Pywikibot | This curated page of example notebooks, how-tos, and recipes]] provides a diverse selection of notebooks that have been created by PAWS users.  
* The [https://public.paws.wmcloud.org/ public index of all PAWS notebooks] is also a good way to see how others are using PAWS. '''Note:''' This list is not organized by notebook type, so searching it is truly a matter of exploration.
* The [https://public.paws.wmcloud.org/ public index of all PAWS notebooks] is also a good way to see how others are using PAWS. '''Note:''' This list is not organized by notebook type, so searching it is truly a matter of exploration.



Revision as of 02:53, 1 November 2020

PAWS.svg

Learn how to use PAWS to run Pywikibot scripts to perform automated tasks on wikis.

Overview

Pywikibot is a Python library and collection of tools that automate work on wikis. Originally designed for Wikipedia, Pywikibot is now used throughout the Wikimedia Foundation's projects and on many other MediaWiki wikis.

This page will help you understand what you can do with Pywikibot in PAWS and provides a link to a notebook based tutorial that you can follow to learn how to perform some basic tasks on wikis.

What can you do with Pywikibot?

If you want to perform maintenance and tasks on wikis that would be difficult to do manually or learn more about wikis you are working with, Pywikibot can be very useful to you. Some examples include giving you the ability to create multiple pages at once, add text and categories, add labels to Wikidata, and much more.

Because Pywikibot is very versatile and makes it possible to perform many different types of tasks on wikis, you may find it useful to explore existing notebooks.

scripts

You can find an extensive list of scripts in the Pywikibot manual.

Notebook based tutorial

PAWS & Pywikibot tutorial - This notebook based tutorial provides information about Pywikibot with PAWS and a walkthrough that will get you started using Pywikibot with Python 3 notebooks and the terminal in PAWS.

some examples of PAWS notebooks that using Pywikibot]] to gain a better understanding of how it can be used to improve your wiki.