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.
Developing bots – https://en.wikipedia.org/wiki/Help:Creating_a_bot
Pywikibot Installation: https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation
To start using PAWS, go to https://hub.paws.wmcloud.org/hub