Scripts & Screenplays: Difference between revisions

From XPUB & Lens-Based wiki
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:

Wikipedia has an API

Every Mediawiki (by default) supports the API:

Etiquette

WikipediaAPIEtiquette.png

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:

http://en.wikipedia.org/w/api.php?titles=Epic_theatre&action=query&rvlimit=10&prop=revisions&format=json&rvprop=user%7Ctimestamp%7Ccontent%7Ccomment

JSONView

Browser extensions that specifically handle JSON are handy!

http://addons.mozilla.org/nl/firefox/addon/jsonview/

JSON Response

WikipediaEpicTheatre.png

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"

Videogrep_man.png

grep "\bwoman\b"

Videogrep_woman.png

Videogrep

Twitter

http://dev.twitter.com/

RSS

http://sociable.co/social-media/twitter-hasnt-killed-rss-just-yet-heres-how-to-find-your-twitter-feed-rss-url/

Welcome to the new API

TwitterAPI11.png

https://dev.twitter.com/docs/faq#10659 October 2012

Bad Authentication data

Twittersearchapichange.png

https://api.twitter.com/1.1/search/tweets.json?q=%23man

Rules of the Road

TwitterDevelopersRulesOfTheRoad.png

https://dev.twitter.com/apps/new October 2012

Anatomy of a tweet

Map-of-a-tweet.png

http://www.readwriteweb.com/archives/this_is_what_a_tweet_looks_like.php?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+readwriteweb+%28ReadWriteWeb%29&utm_content=Google+Reader