Mockingbird: Sample Implementation

Sample Article 1: About the iPhone

Lets pretend this is a really good article all about how great Apple is and how much we love the iPhone...
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.

Sample Article 2: About Coffee

Lets pretend this is a really good article all about how great coffee is and how much programmers need it to live...
Lorem ipsum dolor sit coffee, consectetuer coffee elit. Maecenas sit amet metus. coffee quam elit, posuere nec, auctor in, rhoncus coffee, dui. Aliquam erat volutpat. Ut coffee, massa sit amet coffee cursus, quam coffee feugiat.

Sample Article 3: About Mockingbird

Mockingbird is a JavaScript Twitter widget that displays related tweets based on the content of the page it lives on.

How does it work?

  1. Mockingbird uses YQL to get the contents of the web page that it lives on
  2. The page content is them passed to the Yahoo! Term Extraction Web Service
  3. The top 3 page keyword terms are then used to to construct a search against Twitter
  4. The JavaScript makes heavy use of the Yahoo! User Interface library (YUI)
  5. Most of the content on this sample page is just dummy data. However, there are a few key terms Mockingbird should pickup on. If everything works as expected you should see tweets relating to any of the following topics; the iPhone, Twitter, Yahoo!, coffee, Mockingbird, etc. If you sit on this page for a while you'll notices the tweets refresh every 60 seconds or so.

Related Tweets

Loading Related Tweets...

Download Mockingbird from Github here.