Scripts & Screenplays: Difference between revisions
Line 20: | Line 20: | ||
== Wikipedia has an [[API]] == | == Wikipedia has an [[API]] == | ||
http://en.wikipedia.org/w/api.php | * [http://www.mediawiki.org/wiki/API:Main_page About the API] | ||
* [http://en.wikipedia.org/w/api.php The API itself] | |||
Every Mediawiki (by default) supports the API: | |||
* http://pzwart3.wdka.hro.nl/mw/api.php | |||
== Etiquette == | |||
[[File:WikipediaAPIEtiquette.png]] | |||
== API == | == API == |
Revision as of 10:24, 8 October 2012
Two examples of data-driven drama
From data to video...
- I love alaska, "The heartbreaking search history of AOL user #711391"
- Epicpedia, by PZI alum Annemieke van der Hoek
Epicpedia
A wikipedia article:
and its history:
- http://en.wikipedia.org/w/index.php?title=Epic_theatre&action=history
- http://en.wikipedia.org/w/index.php?title=Little_Butte_Creek&action=history
Wikipedia has an API
Every Mediawiki (by default) supports the API:
Etiquette
API
URL Structure:
http://en.wikipedia.org/w/api.php ? titles=Epic_theatre action=query rvlimit=10 prop=revisions format=json rvprop=user|timestamp|content|comment
becomes:
JSONView
Browser extensions that specifically handle JSON are handy!
http://addons.mozilla.org/nl/firefox/addon/jsonview/
JSON Response
Videogrep
From SRT to EDL
SubRip Text
48 00:06:13,530 --> 00:06:14,460 lt's about time you got married, 49 00:06:14,530 --> 00:06:18,530 Before you turn into a lonesome and bitter, old man. 50 00:06:19,730 --> 00:06:21,860 yeah, can't you just see me? 51 00:06:23,000 --> 00:06:25,000 Rushing home to a hot apartment 52 00:06:25,060 --> 00:06:29,060 To listen to the automatic laundry and the electric dishwasher 53 00:06:29,130 --> 00:06:33,130 And the garbage disposal and the nagging wife.
http://en.wikipedia.org/wiki/SubRip
grep "\bman\b"
grep "\bwoman\b"
Videogrep
RSS
Welcome to the new API
https://dev.twitter.com/docs/faq#10659 October 2012
Bad Authentication data
https://api.twitter.com/1.1/search/tweets.json?q=%23man
Rules of the Road
https://dev.twitter.com/apps/new October 2012