Hi Platonides,
Kilian Kluge wrote:I don't even know how your script can work.
There is a problem with the german umlaut ß (all the others, ä, ö and ü,
work), the pictures aren't downloaded. I don't have the time to look
into that now, so I keep downloading all the others and will try to find
a solution tomorrow (and then download the ß-ones).
So if your language has some special characters that are accepted on
commons and widely used (unfortunately, the german word for street is
Straße ;) ) you should test that first. Once I have a workaround, I'll
let you know.
You get a list of images (eg. "Foo.jpg Bar.jpg") and then you call wget with that. wget expects urls, not filenames.
I suspect your ß problems are related to encodings. You are calling wget without even quoting it (you would also need to escape the quote characters, but that's an improvement). I think you will have problems with &, ' and ". Also, you are executing that in the shell, seems you have a command injection vulnerability. I hope nobody called his file Monument`rm -rf /`.JPG :)
Calling wget each time instead is a bit unefficient, I would recommend using wget -i if you can.