Manual:Pywikibot/imagecopy.py

From MediaWiki.org
Jump to: navigation, search
Wikimedia-logo-meta.png

This page was moved from MetaWiki.
It probably requires cleanup – please feel free to help out. In addition, some links on the page may be red; respective pages might be found at Meta. Remove this template once cleanup is complete.

Bug blank.svg
Wikimedia Git repository has this file:
compat: 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 | edit source]

  • -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

Global arguments are available as well.

Example[edit | edit source]

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

Gave this upload by clicking on OK, and added a template in the original file page.