Thanks Platonides. I was hoping I wouldn't need to parse through the table SQL or load it. But yeah, I'll probably do that.
Also, thanks for letting me know about the copyright issues. Yes, we are aware that some images are restricted and need to be excluded.
Regards Praveen
On Mon, May 16, 2016, 2:13 PM Platonides platonides@gmail.com wrote:
On 16/05/16 04:11, Praveen Balaji wrote:
Hello! Is there a way to tell whether an image is on the "commons" wiki or on "enwiki". Some images seem to be available on "wikipedia/commons", like
so:
https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg
and some others on "wikipedia/en" like so:
http://upload.wikimedia.org/wikipedia/en/6/68/Crocodile_dundee_ii_ver2.jpg
Thanks in advance for your answers.
Cheers Praveen
If it's present in the image table, it's a local upload, so for English wikipedia it will be on http://upload.wikimedia.org/wikipedia/en/%E2%80%A6 (the path would change for other projects, obviously) Else it means it lives in Wikimedia Commons (the only foreign repo used), so it'd be at https://upload.wikimedia.org/wikipedia/commons/%E2%80%A6
It's also possible that an "included image" doesn't actually exist and won't be on any of them.
Also note that images locally uploaded to English wikipedia are most often than not unfree, so be careful about copyright issues with them.