Manual:Pywikibot/imagecopy.py

From MediaWiki.org
Jump to: navigation, search
Git-logo.svg
Wikimedia Git repository has this file: scripts/imagecopy.py

This is a script which copies images from a wikimedia wiki to Commons.

The script requires the python-tk (aka Tkinter) package, which depends on many X-server packages.

Parameters[edit]

  • -page:Image:<imagename> — work with a single image on a single page
  • -newimages:n — work with the n number of new images
  • -cat:<categoryname> — work in the specific category
  • -transcludes:<template> — work with all images transcluding a template
  • -always — skip the GUI validation

Global arguments are available as well.

Example[edit]

python pwb.py imagecopy -lang:en -family:wikibooks -cat:"GFDL images"

Former version:

python imagecopy.py -lang:fr -family:wiktionary -page:Image:Fr-wiktionary-7val-com.gif