greudin@framboise:~/hg$ vim files.txt
Guimard subway canopy.jpg
Guimard subway ceramics.jpg
Guimard subway escutcheons.jpg
:x
greudin@framboise:~/hg$ mkdir dl
greudin@framboise:~/hg$ vim mwdown.pl
[...]
# Set the username and password below:
$username = "Sisyphe";
$password = "Σίσυφος";
[...]
greudin@framboise:~/hg$ perl mwdown.pl commons dl/ < files.txt
blablabla...
greudin@framboise:~/hg$ vim mwup.pl
[...]
# Set the username and password below:
$username = "Sisyphe";
$password = "Σίσυφος";
[...]
# List the wiki PHP scripts where you have the username/password pair
%wiki_php = (
'commons', 'http://commons.wikimedia.org/w/index.php',
'wb', 'http://en.wikibooks.org/w/index.php',
'wikibooks', 'http://en.wikibooks.org/w/index.php',
'wen', 'http://en.wikipedia.org/w/index.php',
'wfr', 'http://fr.wikipedia.org/w/index.php',
);
[...]
greudin@framboise:~/hg$ vim dl/files.txt
[...]
:%s/{{.*}}/{{fair use ...}}/gc
:x
greudin@framboise:~/hg$ perl mwup.pl wfr dl
blablabla...
Uploaded successfully.