Manual:Pywikibot/imagecopy.py
Appearance
Wikimedia Git repository has this file: scripts/imagecopy.py |
Pywikibot scripts |
---|
|
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.
Examples
[edit]$ 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