Skip to main content

Build Status Coverage Status Code Health Documentation Status Pypi License

Tool to download thumbnails of files from Wikimedia Commons

Usage

This tool can be used either by passing the filenames, a category or by using a file list.

Using filenames

Just list the files we want to download.

download_from_Wikimedia_Commons Example.jpg Example_ka.png

Using a category

Just list the files we want to download.

download_from_Wikimedia_Commons --category Example_images

Using a file list

The file list must be formated as following, with one file per line, and filename,width:

Example.jpg,100
Example ka.png,80

Then use the --list argument:

download_from_Wikimedia_Commons --list list.txt

Setting the output folder

By default, the tool downloads the files in the current directory.

This can be changed using the --output flag with a valid path.

download_from_Wikimedia_Commons Example.jpg --output some/path/

Setting the default width

You can set the width of the thumbnail by using the --width argument:

download_from_Wikimedia_Commons Example.jpg --width 50

Verbosity

By default, the tool display basic information its logs (through logging).

You can adjust the verbosity level with the -v and -q flags: use -v to display DEBUG-level messages, -q to silence INFO-level messages.

Installation

Easiest way to install is to use pip from the Python Package Index:

pip install CommonsDownloader

Alternatively, you can clone the repository and install it using setuptools:

python setup.py install

This will install the executable script download_from_Wikimedia_Commons

Release files for CommonsDownloader 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CommonsDownloader 0.5.3
File Size Uploaded
CommonsDownloader-0.5.3.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for CommonsDownloader 0.5.3
File Interpreter ABI Platform
CommonsDownloader-0.5.3-py2-none-any.whl Python 2 none any Details

Total release size: 16.2 kB

Release files / CommonsDownloader-0.5.3.tar.gz

Download URL CommonsDownloader-0.5.3.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
59e1dcd4badf920f62b862ee88737b17275bf6699870004c0b1d60ca7a94c6e9
BLAKE2b-256 checksum
How to use checksums
ed8c1e2b264b4fe99f5cc878ee2d968c79d5f39a118f96c264db073a3bc356f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / CommonsDownloader-0.5.3-py2-none-any.whl

Download URL CommonsDownloader-0.5.3-py2-none-any.whl
Size 8.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
fb0a94ef1acf2c8ee76ec4287c3dda3ef2d354bbeff6ccc6607f59194616bf26
BLAKE2b-256 checksum
How to use checksums
9a44c2f1ffc7e17ac4f3f5872282c14c77922fa73ceb05a05e515b9be5454ae7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.3 This release

2 release files

0.5

0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page