Skip to content

Instantly share code, notes, and snippets.

@ratpik
Created October 13, 2012 19:38
Show Gist options
  • Save ratpik/3885871 to your computer and use it in GitHub Desktop.
Save ratpik/3885871 to your computer and use it in GitHub Desktop.
Jquery to get tweets and published date of SnapBird
$('.tweet').each(function(index, element){
var tweet = $(element).find('.entry-content').html().replace(new RegExp('<strong></strong><strong></strong>', 'gm'),' ').replace(new RegExp('<(/){0,1}strong>', 'gm'), '').replace(new RegExp('"', 'gm'),'');
var date = $(element).find('.published').attr('title');
console.log(tweet+' <my-deliminator> ' +date);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment