I know, I know – it’s probably old news but I just discover Twitter’s streaming API. For these of you who is not in the know or how: anyone with valid Twitter account can monitor Twitter public postings in realtime. It may not get regular users excited but for developers – imaging you are eavesdropping on the whole world! You can get it in compact JSON format or more elaborate XML but generally it will look as long sequence of the following single snippet
Thu Jul 30 16:28:23 +0000 20092932899702@shonda305 @msmayad sore throat<a href="http://www.twhirl.org/">twhirl</a>false38761568falseshonda30518806564jazzyattitudejazzyattitudeFlorida one of a kindhttp://s3.amazonaws.com/twitter_production/profile_images/333149534/DSC00347_normal.JPGfalse85709397333333FF3300A0C5C786A4A643Fri Jan 09 16:54:26 +0000 20090-18000Eastern Time (US & Canada)http://static.twitter.com/images/themes/theme6/bg.giffalse2469false
How did I get this? Get yourself a curl utility (if you on Win you can use this one) and run this command from the command prompt
Note that YOURUSERNAME:YOURPASSWORD is just your regular Twitter user name/password – you don’t need to register dev account, nothing like that
You will now see long stream of XML snippets like one above. Change to spritzer.json and now you are streaming JSON
What to do with this? Hey – I have some ideas, you can get your own
Bostone Consulting is a development firm specializing in Android and Java projects. List of clients includes Qualcomm, Boeing, HP and Teradata. Bostone Consulting is a developer of popular Android applications such as Droidin’ LinkedIn client and HireADroid Job Search
more →
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.