Skip to content

Instantly share code, notes, and snippets.

@hinovana
Created July 16, 2014 08:33
Show Gist options
  • Save hinovana/e8237c6977f2131668a1 to your computer and use it in GitHub Desktop.
Save hinovana/e8237c6977f2131668a1 to your computer and use it in GitHub Desktop.
今井さんの昔のツイートを読む
/// 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());
});
});
});
@youcune
Copy link

youcune commented Jul 16, 2014

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment