Skip to content

Instantly share code, notes, and snippets.

@clngn
Created September 24, 2012 09:06
Show Gist options
  • Save clngn/3775049 to your computer and use it in GitHub Desktop.
Save clngn/3775049 to your computer and use it in GitHub Desktop.
ハッシュタグ検索したり
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>
$(function() {
$.getJSON(
'http://search.twitter.com/search.json?q=%23ponponpain',
function(data) {
for (var i = 0; i < data.results.length; i++) {
$("#result").append("<p>" + data.results[i].text + "</p>");
}
}
);
});
</script>
</head>
<body>
<div id="result"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment