Smiles vs. Frowns on Twitter

From the archive — written 17 years ago. About old posts.
![](https://media.puddingtime.org/archive/mph.puddingbowl.org/wordpress/wp-content/uploads/2009/02/98e35206-4115-46d3-94e4-a90c042056dc.jpg)

Posts with “:)” vs. posts with “:(” on Twitter over the past 28 days.

Actually, Twitter’s API treats those two terms as special operators, so you get back posts with :) :-) :D :-( :( etc. It’d be nice if the JSON Twitter sent back included post mood as an attribute. Instead, you’ve got to just look at the text of each post and decide where it falls because =~ /:\)/ won’t cut it. I punted and just looked for “)” or “(” and left it at that.

#google charts #ruby #twitter

Drop a line about this.