Skip to main content

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).

PyPI pytest Platforms PythonV License: MIT Build Build Status

Issues Size Commits

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.

LinkedIn

References

[1]: https://www.mediawiki.org/wiki/API:Main_page
[2]: https://commons.wikimedia.org/w/api.php

Back to top

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyWikiCommons-0.0.1.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

pyWikiCommons-0.0.1-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page