Manual:Pywikibot/Compat/picasacopier.py

Picasa copier is a free Python program for easy upload of large numbers of public images from Picasa (Google web albums) to Wikimedia Commons. The program is part of Pywikipedia and is currently in verification state.

Installation
Picasacopier is part of Pywikipedia. You first need to install pywikipedia. At Using the python wikipediabot you can find a manual on how to install pywikipedia. SVN install is recommended.
 * Pywikipedia

We need to install 2 more packages. For this we need setuptools. You can download the latest version at http://pypi.python.org/pypi/setuptools
 * Easy install

Python Image Library (PIL) is used to show the image. You can install it by running the command at a command prompt:
 * Python Image Library

The Google data api kit is used to communicate with the Picasa web album api. (see Installing Google Data API Python Library)
 * Google Data API kit

Usage
To run Picasacopier you have to browse to the Pywikipedia folder. Then type the following:

You are presented with various options:
 * Options to tell what images to work on:


 * -user_id - The id of the picasa web album user to work. Works on all public images uploaded by a user. (e.g. if your email is 'test@gmail.com', your User ID is 'test')
 * -album_id - The id of the Picasa web album. (look here finding web album id number)
 * Options to tell how to work on each image:
 * -picasareview - Mark as picasareviewed
 * -reviewer - Set the reviewer for picasareview
 * -override - Remove the licensing part and replace it with something custom. Can be used for transfering copyrighted photo's for which you have OTRS permission. Use with care!
 * -removecategories - Remove the suggested categories
 * -addcategory - Manually add a category (will be supporting multiple categories)
 * -autonomous - For autonomous uploading without showing of each image. Use with care!

Syntax:

Troubleshooting
Traceback (most recent call last): File "picasacopier.py", line 371, in    from PIL import Image, ImageTk    # see: http://www.pythonware.com/products/pil/ ImportError: No module named PIL

You can fix this by manually PIL installation (not by easy_install).