Last modified: 2014-04-20 16:14:36 UTC
As pointed out in https://www.wikidata.org/wiki/User:Underlying_lk/sandbox#commonsMedia_support_in_harvest_template , it should be relatively easy to add image support. elif claim.getType() == 'commonsMedia': mediasite = pywikibot.Site("commons", "commons") image = pywikibot.ImagePage(mediasite, value) claim.setTarget(image) Instead of using ImagePage I think Link() should be used.
Change 127478 had a related patch set uploaded by Multichill: (bug 62008) Added support for images https://gerrit.wikimedia.org/r/127478
Change 127478 merged by jenkins-bot: (bug 62008) Added support for images Now with checking for redirect and if the image actually exists https://gerrit.wikimedia.org/r/127478
Implemented. Added a bit more checking: * Uses Link instead of Page directly * Checks if the imagepage is a redirect * Checks if the image actually exists