Skip to content

Instantly share code, notes, and snippets.

@atduskgreg
Created January 24, 2015 19:40
Show Gist options
  • Save atduskgreg/da0db85cca7c5516b4ec to your computer and use it in GitHub Desktop.
Save atduskgreg/da0db85cca7c5516b4ec to your computer and use it in GitHub Desktop.
Tools.fetch("http://www.foxnews.com/politics/index.html", function(data){
page = $(data.responseText);
tweets = [];
page.find(".c-latest h3").each(function(i, headline){
headlineText = $(headline).text();
// do something with each headlineText
tweets.push(headlineText);
});
Tools.renderTweets(tweets);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment