Skip to content

Instantly share code, notes, and snippets.

@jellybob
Created June 6, 2010 21:39
Show Gist options
  • Save jellybob/427928 to your computer and use it in GitHub Desktop.
Save jellybob/427928 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="http://www.google.com/jsapi?key=ABQIAAAAFGHbizpn9jfT8F79BhK2CRQBcqlJQAiZ8qPJLW0U41gaFClPGxSlTQ2kK3woukL0OnUH00YrxzWNeg"></script>
<script>
google.load("feeds", "1");
function init() {
var feed = new google.feeds.Feed("http://twitter.com/statuses/user_timeline/25873473.rss")
feed.load(function (result) {
if (!result.error) {
var ul = document.getElementById("tweets");
for (var i = 0; i < result.feed.entries.length; i++) {
var entry = result.feed.entries[i];
var text = entry.title.replace(/^(\w+: )(.*)$/, '$2');
var li = document.createElement("li");
li.appendChild(document.createTextNode(text));
ul.appendChild(li);
}
}
});
}
google.setOnLoadCallback(init);
</script>
</head>
<body>
<ul id="tweets"></ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment