Commons:Bots/Requests/Legobot 3

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

Legobot 3 (talk · contribs)

Operator: Legoktm (talk · contributions · Number of edits · recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Importing election tabular data (example)

Automatic or manually assisted: Automatic

Edit type (e.g. Continuous, daily, one time run): Multiple "one time runs", as needed

Maximum edit rate (e.g. edits per minute): 6

Programming language(s): Python

I've been working on importing election tabular data to Commons for use on English Wikipedia articles. I manually imported 2012-2016 for California, and am now at a level where I would like to bulk import the rest of the data. I'm going to be starting with the MIT Election Lab data (CC-0 licensed). The initial import will create roughly 1000 pages (20 elections times 50 states), and I plan to import additional election data as I find sources and we have templates adapted and ready for use (someone has already asked me about extending this to Canadian elections). Legoktm (talk) 07:17, 13 November 2018 (UTC)


  • Please make a test run. --EugeneZelenko (talk) 14:56, 13 November 2018 (UTC)
    Done, I had it create 10 pages and then stop. Spot-checking the California data, it looks correct. Legoktm (talk) 07:27, 14 November 2018 (UTC)
    Looks OK for me, but it'll be good idea to mention source in edit summaries. --EugeneZelenko (talk) 14:53, 14 November 2018 (UTC)
    Ok, how about Importing election tabular data from MIT Election Lab? Legoktm (talk) 21:36, 14 November 2018 (UTC)
    URL will be better. --EugeneZelenko (talk) 14:30, 15 November 2018 (UTC)
    Alright, now it's Importing election tabular data from MIT Election Lab ( Legoktm (talk) 03:59, 17 November 2018 (UTC)
    Please make new test run. --EugeneZelenko (talk) 14:48, 18 November 2018 (UTC)
    Done, made 10 more edits (Hawaii through Massachusetts). Legoktm (talk) 06:45, 20 November 2018 (UTC)
    Looks OK for me. --EugeneZelenko (talk) 15:18, 20 November 2018 (UTC)
  • Should this really be uploaded to Commons? Why is this not incorporated into Wikidata? --Schlurcher (talk) 21:39, 19 November 2018 (UTC)
    Election data doesn't really fit the Wikidata model, which is more of individual facts, rather than spreadsheet style data. Sure, we could have properties for how many votes a candidate got, but that data is effectively useless because there's (nearly) always at least two people in an election, and unless you know the other person's votes, knowing just one's is useless. There's also some short notes about what data fits in tabular data vs Wikidata at m:DataNamespace#What_about_Wikidata? and mw:Extension:JsonConfig/Tabular. Legoktm (talk) 06:45, 20 November 2018 (UTC)

Approved. --Krd 10:37, 21 November 2018 (UTC)