-
RSS Links
Categories
Archives
-
Recent Posts
My Tag Cloud
arduino c# cmu director elderly emotional design feet blogging flash gestures glovepie google wave HCI idea interface design mobility movies non-profit outdoor pachube papervision personal photography pittsburgh programming public spaces reviews science social interaction social interfaces social media twitter wiiflash wiimotes wiipaint xaml
Twitter::chloester
- Testing out Rapportive for my Gmail inbox (adds contact profiles to right-hand side) http://www.rapportive.com 1 week ago
- Speaking of Flickr, just realized they deleted all my pics 'cause pro account expired. Some advance notice would have been nice! Not happy. 1 week ago
- Considering a fresh start on my Flickr page...only show the best w/story, while everything else can go on Picasaweb. 1 week ago
- Omg, Wild River Kettle Corn from Strip District is BEST EVER. #cantstopnomming 1 week ago
- Celebrated completion of communication requirement talk by buying a 27" monitor :] http://amzn.to/af4GX0 Current 23.6" will go in office. 1 week ago
- Old School Color Cycling with HTML5 http://bit.ly/cQYG5o 2 weeks ago
- Copenhagen! So tired from exploring the city for 4 hours. Caught Hej Matematik concert at Tivoli. Canal tour tomorrow then off to Amsterdam! 2 weeks ago
- Chihiro Sato presents model for calculating curiosity in public places by measuring walking speed. #dis2010 2 weeks ago
- Skipping afternoon sessions and exploring Aarhus in sunny weather #dis2010 2 weeks ago
- A couple of us are going to dinner/ARoS museum tonight after designer's eve (M trip). Reply if interested! #dis2010 3 weeks ago
- More updates...
Twitter Wordle
I came across Ankit Ahuja’s blog today and saw his Twitter Wordle blog post. For those of you who don’t know, Wordle is a simple online application that lets you create word clouds from text files or websites, emphasizing words that are used more often. I wanted to make my own but couldn’t find the right resources from the site, so I ended up doing a Google search for a script that would allow me to download all of my tweets into a text file. I found a python script by Zach Seifts that I ran after downloading BeautifulSoup, a Python HTML/XML parser required to run the script. Nick helped me tweak it a little bit so that it worked. Here is the code that I used:
import time from urllib2 import urlopen from BeautifulSoup import BeautifulSoup # Replace USERNAME with your twitter username url = u'http://twitter.com/USERNAME?page=%s' tweets_file = open('tweets', 'w') for x in range(10*10000): f = urlopen(url % x) text = f.read() text = text.replace("sc'+'ript", "script") soup = BeautifulSoup(text) f.close() tweets = soup.findAll('span', {'class': 'entry-content'}) if len(tweets) == 0: break [tweets_file.write(t.renderContents() + '\n') for t in tweets] # being nice to twitter's servers time.sleep(5) print "working...Page",x tweets_file.close()This exported all of my tweets into a text file that included all @ replies and HTML tags. Since Wordle would easily pick them up, I had to get rid of all HTML tags and @’s so that they wouldn’t dominate the word cloud. To do so, I used Emacs to create macros that automatically found and deleted them, leaving only raw text that I could plug into Wordle. The result is this glorious Twitter Wordle cloud à la @chloester: