Python package for downloading images and videos from Wikimedia Commons using the Wikimedia API.
Project description
pyWikiCommons
Python package for downloading images and videos from Wikimedia Commons using the Wikimedia API (https://commons.wikimedia.org/w/api.php).
Table of Contents
Introduction
https://www.mediawiki.org/wiki/API:Main_page
Requirements
Installation
Install the latest version of pyWikiCommons using pip:
pip3 install pyWikiCommons
Installation from source:
git clone -b master https://github.com/amckenna41/pyWikiCommons.git
python3 setup.py install
cd pyWikiCommons
Usage
https://www.mediawiki.org/wiki/API:Main_page
Directories
/docs
- documentation for pyWikiCommons (pending)./images
- all images used throughout the repo./pyWikiCommons
- source code for pyWikiCommons software./tests
- unit and integration tests for pyWikiCommons.
Issues
Any issues, errors or bugs can be raised via the Issues tab in the repository.
Tests
To run all tests, from the main pyWikiCommons repo folder run:
python3 -m unittest discover
To run tests for specific module, from the main pyWikiCommons repo folder run:
python -m unittest tests.MODULE_NAME -v
License
Distributed under the MIT License. See LICENSE
for more details.
Contact
If you have any questions or comments, please contact amckenna41@qub.ac.uk or raise an issue on the Issues tab.
References
[1]: https://www.mediawiki.org/wiki/API:Main_page
[2]: https://commons.wikimedia.org/w/api.php
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyWikiCommons-0.0.1.tar.gz
.
File metadata
- Download URL: pyWikiCommons-0.0.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d0af9ca5eb25370ff999c8e204d84f146aed84bdba5937fd46eef9f332621f4 |
|
MD5 | 7cef1f6fe2bccfa7f201f35eec8cf370 |
|
BLAKE2b-256 | 3f3939469f7b2bd21a7fdb32095ca00911ddc86ec0a1e469931488db1eea59bb |
File details
Details for the file pyWikiCommons-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyWikiCommons-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6293337ca7e4d6fa6231b835e72c01318fc752c64b463774968fe82082b8dbfb |
|
MD5 | d61e96b363e9e9ba3a2221b67e9e9f2b |
|
BLAKE2b-256 | c375a45fab5f8d52cc9fcc9a2354ea420ebe01e2015fef88dfd5c755dd45c33f |