public
Description: generate code_swarm data from Wikipedia page histories & user contributions
Homepage: http://jamiedubs.com
Clone URL: git://github.com/jamiew/wikiswarm.git
wikiswarm / README
100644 48 lines (26 sloc) 1.239 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Wikiswarm
===
 
Generates code_swarm event logs from the Wikipedia API.
 
Written to visualize edits to the Barack Obama page:
http://vimeo.com/2177573
 
 
Usage
===
 
Get the code_swarm Processing app installed and working:
http://code.google.com/p/codeswarm/
http://github.com/rictic/code_swarm/
 
Generate an activity.xml using wikipedia.rb -- can accept multiple args:
 
$ ruby wikipedia.rb "Barack Obama" > activity.xml
 
It will also generate a merged log from multiple arguments:
 
$ ruby wikipedia.rb "Barack Obama" "John McCain" "Ron Paul" > activity.xml
 
And can produce a log of a users' contributions, which fits the few-authors-many-files paradigm better:
 
$ ruby wikipdia.rb "User:Jamiew" > activity.xml
 
 
Config
===
 
The code_swarm.wikipedia.config file is the config I used to generate the Obama video. It has edges turned on (which turns the histogram off) and lower TTL for authors.
 
In a code_swarm install you can do something like:
 
$ ruby wikiswarm/wikipedia.rb "Barack Obama" > data/activity.xml
$ ./run.sh wikiswarm/code_swarm.wikipedia.config
 
See the code_swarm docs for how to save frames and use ffmpeg to generate a video. Then add rap music and enjoy!
 
 
 
Written by Jamie Wilkinson
http://jamiedubs.com
Nov. 6th 2008