pywikibot

Automate MediaWiki page edits and mass operations with Pywikibot.

15|6|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/fuzheado/Wikipedia-AI-Skills --skill pywikibot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pywikibot
Source: https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/pywikibot
Command: npx skills add https://github.com/fuzheado/Wikipedia-AI-Skills --skill pywikibot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wikimedia-api-access, wikidata, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates tasks on MediaWiki sites, such as editing pages, running mass operations, and scraping templates into Wikidata, saving time and reducing errors.

Core Features & Use Cases

  • Page Editing: Edit pages, run mass operations, and scrape templates into Wikidata.
  • Bot Framework: Provides a framework for creating custom bots to automate tasks.
  • Use Case: Imagine you need to update the category of all physics articles on Wikipedia. Use this Skill to create a bot that automatically moves them to the new category.

Quick Start

Use the pywikibot skill to create a bot that moves all physics articles to the new category 'Physics Topics'.

Frequently Asked Questions about pywikibot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate MediaWiki page editing with Python?

Automate MediaWiki page editing with Python by using the Pywikibot library to handle page edits, mass operations, and bot creation. It interfaces directly with the MediaWiki Action API to modify page content programmatically.

Can I scrape templates into Wikidata using Pywikibot?

Yes, you can scrape templates into Wikidata using Pywikibot. The Skill supports Wikidata integration, allowing you to extract template data from MediaWiki pages and populate Wikidata items automatically.

How do I create a bot to move Wikipedia articles to a new category?

Create a bot to move Wikipedia articles to a new category by leveraging the Pywikibot framework. It provides scripts and a bot framework to define custom rules and execute mass page operations across MediaWiki sites.

Does Pywikibot require the MediaWiki Action API to run mass page operations?

Yes, Pywikibot requires the MediaWiki Action API and relevant Python libraries to run mass page operations. You need proper Wikimedia API access credentials configured to authenticate and execute automated edits.

What is the best way to run mass operations on Wikipedia pages?

The best way to run mass operations on Wikipedia pages is using the Pywikibot Python library. It provides a dedicated bot framework to automate repetitive maintenance tasks like page editing and category updates at scale.

Are there limitations when using bot automation for MediaWiki maintenance tasks?

Bot automation for MediaWiki maintenance tasks is limited by Wikimedia API access rules and rate limits. You must ensure your bot complies with site guidelines and have the correct Python environment configured to avoid execution errors.