There is a sample for this script given in the doc but it fails:
C:\pwb\GIT\core>pwb.py imagecopy -newimages:100 Retrieving 49 pages from wikipedia:de. WARNING: .\scripts\imagecopy.py:536: DeprecationWarning: pywikibot.page.FilePage .getLatestUploader is deprecated for 3 years and 11 months; use FilePage.latest_ file_info.user instead. username = imagepage.getLatestUploader()[0] Traceback (most recent call last): File "C:\pwb\GIT\core\pwb.py", line 257, in <module> if not main(): File "C:\pwb\GIT\core\pwb.py", line 250, in main run_python_file(filename, [filename] + args, argvu, file_package) File "C:\pwb\GIT\core\pwb.py", line 119, in run_python_file main_mod.__dict__) File ".\scripts\imagecopy.py", line 594, in <module> main() File ".\scripts\imagecopy.py", line 555, in main imagepage.templates()).getnewname() File ".\scripts\imagecopy.py", line 403, in __init__ super(TkdialogIC, self).__init__() TypeError: __init__() missing 3 required positional arguments: 'photo_descriptio n', 'photo', and 'filename' <class 'TypeError'> CRITICAL: Closing network session. C:\pwb\GIT\core>