User:Cmglee/Wikimania 2016 notes

Lua hackathon
My first Wikimania was in.

To upload and download files on Commons: See Etherpad and talk to user:Yarl (referred by user:Masti)
 * http://mediawiki.org/wiki/Manual:Pywikibot/upload.py
 * http://mediawiki.org/wiki/Manual:Pywikibot/data_ingestion.py
 * http://mediawiki.org/wiki/Manual:Pywikibot/Installation

Chat with Shyamal

 * http://www.edwardtufte.com/bboard/q-and-a?topic_id=1
 * http://www.species-in-pieces.com/
 * Elephant in 4 points
 * R readShapePoly save as EPS and import in Inkscape

pywikibot training
mylang = 'en' family = 'wikipedia' import pywikibot test_site = pywikibot.Site('test', 'wikipedia') test_page = pywikibot.Page(test_site, 'user_talk:cmglee') test_page.exists test_page.text += 'Hello world' test_page.save @interact_manual def write_page(name='user_talk:cmglee', text=''): p = pywikibot.Page(test, name) p.text = text p.save  Site |_ Page |_ ItemPage |_ Item dict |_ claim |_ claim site = pywikibot.Site('wikidata', 'wikidata') repo = site.data_repository item = pywikibot.ItemPage(repo, 'Q43049') item_dict = item.get item_dict.keys dir(item) claim = item_dict['claims']['P31'][0] dir(claim) claim.toJSON
 * Login to http://paws.wmflabs.org (hard refresh if connecting problem)
 * New &gt; Terminal
 * Visit test.wikipedia.org to create account, then enter in Terminal  adds to http://test.wikipedia.org/wiki/user_talk:cmglee
 * To write to other wikipedias, create a file  with content
 * In a Python 3 Notebook, press shift+enter to execute command, tab for word completion, append ? and shift-enter for help on any command:
 * More: http://www.mediawiki.org/wiki/Manual:Pywikibot/Scripts
 * To create HTML form GUI:
 * Access wikidata
 * deprecated = obsolete info but kept for interest e.g. medical claims