From Wikimedia Commons, the free media repository
Jump to: navigation, search


Operator: Dschwen

Automatic or Manually Assisted: automatic

Programming Language(s): Python, using the pywikipedia framework

Edit period(s) (e.g. Continuous, daily, one time run): About once or twice a day

Bot flag requested: (Y/N): Y

Functions: I already have a bot User:QICbot which handles the processing of COM:QIC images (evaluating promotions and declines, archiving, tagging). This bot is stable and I do not want to use its user for any other tasks. Following discussions on Commons_talk:Geocoding and Commons_talk:Valued_images_candidates I have two new tasks for two new bot scripts.

  1. a bot which extracts GPS EXIF tags from images on commons and creates {{location}} templates accordingly (due to a bug in the handling of EXIF tags in the mediawiki software the GPS data is extraction is broken)
  2. a VICbot which would be the COM:VIC counterpart to the QICbot. --Dschwen 19:01, 19 May 2008 (UTC)


  • No objections from here. Will there be a separate request for the VICbot? giggy (:O) 04:23, 20 May 2008 (UTC)
  • ok -- Bryan (talk to me) 09:19, 20 May 2008 (UTC)
  • Could you please make test run for GPS EXIF? Also agree with giggy about VICbot account. --EugeneZelenko 14:32, 20 May 2008 (UTC)
    • Ok, I just wasn't sure if it is ok to have so many bot accounts. But I'd prefer to keep separate accounts anyways. I'll do a test run for a couple of images. Will report back shortly. --Dschwen 14:34, 20 May 2008 (UTC)
      • Hmm, it seems I have to solve a captcha for every edit the botscript makes as User:DschwenBot, while it just works as User:QICbot [1]. Is that related to the bot-flag? In any case, the script seems to work. I'll just have to position the {{Location}} a little less retarded [2]. --Dschwen 16:54, 20 May 2008 (UTC)
        • I think its' fine. However MediaWiki doesn't show related EXIF fields, but I definitely remember that related messages included in MessagesXYZ.php files. --EugeneZelenko 14:40, 21 May 2008 (UTC)
          • GPS EXIF Data is stored as multiple fraction values per key. Mediawiki extracts only single values per key. So the GPS data in the db is broken/incomplete. I've looked at the extraction code, but as far as I can see it would require either a dirty hack (not going to happen) or a large rewrite. And even then it would probably be useful to move that data on the image page inside a Location template for being able to have a homogeneous coordinate display, controlling the links and categorization etc. --Dschwen 14:47, 21 May 2008 (UTC)
  • Approved.--Jusjih 03:53, 26 May 2008 (UTC)