Wikipedia:Scripts/ImageFileMigrator

This script will download all Files from a wiki to ./images/ and then upload them to another wiki.

Download and save each of the following four source files. Edit Main.py to list source and destination wikis. Then run Main.py.

/ImageDownloader.py
/MultipartPostHandler.py
/Wiki.py
/Main.py