Commons:Command-line upload

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Other languages:
English • ‎Lëtzebuergesch • ‎dansk • ‎français • ‎magyar • ‎polski • ‎русский • ‎українська • ‎العربية • ‎日本語

It is possible to upload to Wikimedia Commons using command-line tools.

Python Wikipedia Bot[edit]

The python framework includes various file upload tools. These tools require installing python and the pywikibot framework. If each upload is checked prior to upload (see verifyDescription option below), it isn't considered a bot.

For detailed information on its usage:

To login with this tool, your configuration file needs the following settings.

family = 'commons'
mylang = 'commons'
usernames['commons']['commons'] = 'nick'

Usage:

For other tools based on pywikipediabot, see multichill/bot and erfgoedbot.

Flickrripper[edit]

Flickrripper is a free Python program for easy upload of large numbers of images from Flickr to Wikimedia Commons. The program is documented in mw:Manual:Pywikibot/flickrripper.py.

Nichalp's upload script[edit]

Nichalp upload script icon.svg

A Perl script that creates a CSV file with the list of photographs in a folder. Enter all information, such as description, licence, category, latitude, longitude and so on. Also embeds certain Exif data to the photograph such as GPS data, name, licence etc. In addition, you can also rotate and rename it on-the-fly.

Wmigda's upload script[edit]

A Python version of Nichalp's upload script but that is dependent on the upload.csv-file that one of Nichalp's two Perl script generates.

Requirement: At least Perl and Python and one of Nichalp's two scripts, see documentation for further details

BotClasses.php[edit]

Some bots, like User:BrooklynMuseumBot, were written in PHP based on BotClasses.php