Created
July 16, 2014 08:33
-
-
Save hinovana/e8237c6977f2131668a1 to your computer and use it in GitHub Desktop.
今井さんの昔のツイートを読む
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Chrome -> Developer Tools -> Cosole | |
/// > | |
jQuery(function($) { | |
var since = '2013-02-03'; | |
var until = '2013-03-02'; | |
var from = 'tomoaki_imai'; | |
var u = "https://twitter.com/i/search/timeline?q=since:!s! until:!u! from:!f!&include_available_features=1&include_entities=1"; | |
$.getJSON(u.replace(/!s!/, since).replace(/!u!/, until).replace(/!f!/, from), function(j) { | |
$(j.inner.items_html).find('.content').each(function() { | |
var out = []; | |
with($(this).find('.tweet-timestamp')) { | |
out.push(attr('title')); | |
out.push('https://twitter.com/' + attr('href')); | |
} | |
console.error(out.join(' - ') + '\n' + $(this).find('p.tweet-text').text()); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
+1