Manual:Pywikibot/imagecopy.py
From Linux Web Expert
File:Git icon.svg | <translate> Wikimedia [[<tvar|1>Special:MyLanguage/Gerrit</>|Git repository]] has this file:</translate> scripts/imagecopy.py |
File:Pywikibot MW gear icon.svg |
<translate> Pywikibot scripts</translate> |
---|
|
· <span style="" title="<translate nowrap> Edit this template</translate>"><translate> e</translate> |
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
- -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.
Examples
$ python pwb.py imagecopy -lang:en -family:wikibooks -cat:"GFDL images"
$ python pwb.py imagecopy -lang:fr -family:wiktionary -page:Image:Fr-wiktionary-7val-com.gif