Download thumbnails from Wikimedia Commons
Project description
Tool to download thumbnails of files from Wikimedia Commons
Usage
This tool can be used either by passing the filenames or by using a file list.
Using filenames
Just list the files we want to download.
download_from_Wikimedia_Commons.py Example.jpg Example_ka.png
You can set the width of the thumbnail by using the --width argument:
download_from_Wikimedia_Commons.py --width 50 Example.jpg Example_ka.png
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.py --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.py Example.jpg --output some/path/
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:
pip install git+git://github.com/Commonists/CommonsDownloader.git#egg=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.py
Project details
Release history Release notifications | RSS feed
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
Hashes for CommonsDownloader-0.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee96e5698b48c4e2895d3a0ead1cb81248885131a266016cab586dd36c56574f |
|
MD5 | abb1ab27bd3e4fabfe005d18ec34c68a |
|
BLAKE2b-256 | 20579cbdc7ebd529cb6bf651054d39069fa6867b214b86140d6b92c8ea5bb163 |