1 // =====================================================================
2 // Twitter is popular amongst some SC users.
3 // This is a script to retrieve all the supercollider twits
4 // Original code by Eric Skogen, with some tweaks by Marije Baalman (nescivi)
5 // =====================================================================
7 // NOTE: to use this script you need to have installed the Quark: XML
8 // See the Quarks helpfile on how to install this Quark.
9 // You also need to have "curl" installed on your system.
14 "curl http://search.twitter.com/search.atom?q=%23supercollider+play",
19 while({l.notNil}, {a = a + l; l = p.getLine; });
24 t = d.getElementsByTagName("entry").collect { |e|
26 "// by " + e.getElementsByTagName("author").first
27 .getElementsByTagName("name").first.getText() + ":\n" +
29 e.getElementsByTagName("title").first.getText()
33 Document( "supercollider tweets", "// #supercollider tweets\n\n\n" +
34 t.join("\n\n\n\n")).syntaxColorize;
40 // a slight delay is to be expected, to await the gathering of twitters' reply.
41 // (do not be alarmed. all part of the show, my friends)
42 // oh and yeah you'll need the XML Quark
43 // (http://quarks.svn.sourceforge.net/viewvc/quarks/XML/)
44 // and it only works if you can run Pipe