This repository contains a set of tools developed to support Wikimedia-related activities, including scripts, automation, and enhancements that can streamline contributions to Wikimedia projects.
Suyash Dwivedi
User:Suyash.dwivedi
- MediaWiki API Integration: Scripts that interact with MediaWiki for automation of common tasks such as uploading files, editing pages, and managing categories.
- Content Management: Tools to simplify bulk uploading, categorizing, and editing on Wikimedia Commons.
- Wikidata Automation: Scripts for automating data fetching, uploading, and updates on Wikidata.
- Wikimedia Commons Tools: Utilities for batch resizing, metadata editing, and optimizing images for Wikimedia Commons contributions.
- Statistics Tracking: Scripts to fetch user contributions, page views, and edit statistics for personal or project use.
- Security & Compliance: Tools that ensure contributions are compliant with Wikimedia policies, including licensing checks and attribution tools.
Automates the process of uploading files to Wikimedia Commons, with metadata handling and license validation.
Automates updates to Wikidata entries based on external data sources or predefined templates.
Allows bulk editing of metadata for files already uploaded to Wikimedia Commons, including batch license updates and category management.
Retrieves user contribution statistics for various Wikimedia projects, displaying edit counts, page views, and active contributions.
Verifies that all uploaded content adheres to Wikimedia’s licensing policies, including the use of proper attribution and copyright tags.
git clone https://github.com/Suyashdwivedi/Wiki_Tools.git
cd Wiki_Tools
Ensure you have Python 3 installed along with required dependencies listed in the requirements.txt
file:
pip install -r requirements.txt
In each script requiring MediaWiki API access, update the configuration with your credentials:
api_url = "https://www.your_wiki_instance.org/w/api.php"
username = "YourUsername"
password = "YourPassword"
After configuration, you can run the individual scripts based on the required function, such as:
python mediawiki_upload.py
python wikidata_update.py
This project is licensed under the CC BY-SA 4.0 license.