Minutes – Workshop on Pywikibot

Last Saturday, I attended a online workshop on Pywikibot. It is a python library to interact with mediawiki and all wikipedia websites, programmatically.

The event was arranged by “Small Wiki Toolkit – South Asia” team. The trainer was Joaquin from Spain. we got some 25 participants.

He started with introduction to python as we were from various experience levels. Then, he explored about PAWS. A free programming environment for all wikipedia account holders. With that, we can get
free Jupyter Notebooks with python for free, to develop any tools for wikipedia.

As pywikibot is already installed on PAWS, he explored how to login with test.wikipedia.org
This is a test site, so that we can play around with the content safely.

Once configured, we can get text fom any page, add new content and save the pages.

pywikibot has many pre buit scrits to make the life easier. We explored few scripts. Even the pages with unicode names also easy handled just like a english titled page.

Then, he explained how to install and configure on a stand alone server and run scheduled jobs via cron on tool server and standalone server.

Then, we had good QA session.

This gave me some interest to play around with pywikibot. It has been so many years pending task for me to learn this tool. Will explore it more and make some tools.

Thanks for all the Smallwiki toolkit team for organizing this event. Requested to have one session just to teach how to use the mediawiki api. It will help a lot for new contributors.

Few links.

https://meta.wikimedia.org/wiki/Small_wiki_toolkits/South_Asia/Registration

Notes – https://etherpad.wikimedia.org/p/SWT-BotFeb2021

Developing bots – https://en.wikipedia.org/wiki/Help:Creating_a_bot

Useful bots – https://meta.wikimedia.org/wiki/Small_wiki_toolkits/Starter_kit/Bots_and_Tools

Pywikibot Installation: https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation

https://www.mediawiki.org/wiki/Manual:Pywikibot/PAWS
https://wikitech.wikimedia.org/wiki/PAWS

To start using PAWS, go to https://hub.paws.wmcloud.org/hub

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s