Created
October 13, 2012 19:38
Jquery to get tweets and published date of SnapBird
This file contains 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
$('.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