require "http/client" require "json" require "pretty_print" require "xml" #require "inotify" require "time" require "twitcr" require "http/params" require "html" STDOUT.sync = true puts( "Content-type: text/html" ) puts( "" ) print( <<-XML
" ) # puts( HTML.escape( history.join( " " ) ) ) # puts( "
" ) print( "" ) print( HTML.escape( key.to_s ) ) print( " | " ) print( HTML.escape( value.to_s ) ) print( " |
" ) print( HTML.escape( follow["followed_at"]?.to_s.[0..9] ) ) print( " | " ) print( HTML.escape( channel["created_at"]?.to_s.[0..9] ) ) print( " | " ) print( HTML.escape( channel["updated_at"]?.to_s.[0..9] ) ) print( " | " ) print( HTML.escape( follow["to_id"]?.to_s ) ) print( " | " ) print( HTML.escape( follow["to_name"]?.to_s ) ) print( " | " ) print( HTML.escape( ( stream["viewers"]?.to_s ) ) ) print( " | " ) print( HTML.escape( channel["followers"]?.to_s ) ) print( " | " ) print( HTML.escape( channel["views"]?.to_s ) ) print( " | " ) print( HTML.escape( ( channel["game"]?.to_s ) ) ) print( " | " ) print( HTML.escape( ( channel["broadcaster_language"]?.to_s ) ) ) print( " | " ) print( HTML.escape( ( channel["status"]?.to_s ) ) ) print( " |
" ) print( HTML.escape( follow["followed_at"]?.to_s.[0..9] ) ) print( " | " ) print( HTML.escape( channel["created_at"]?.to_s.[0..9] ) ) print( " | " ) print( HTML.escape( channel["updated_at"]?.to_s.[0..9] ) ) print( " | " ) print( HTML.escape( follow["from_id"]?.to_s ) ) print( " | " ) print( HTML.escape( follow["from_name"]?.to_s ) ) print( " | " ) print( HTML.escape( ( stream["viewers"]?.to_s ) ) ) print( " | " ) print( HTML.escape( channel["followers"]?.to_s ) ) print( " | " ) print( HTML.escape( channel["views"]?.to_s ) ) print( " | " ) print( HTML.escape( ( channel["game"]?.to_s ) ) ) print( " | " ) print( HTML.escape( ( channel["broadcaster_language"]?.to_s ) ) ) print( " | " ) print( HTML.escape( ( channel["status"]?.to_s ) ) ) print( " |