Created
January 20, 2013 12:50
-
-
Save arisolt/4578423 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
var req = require('request'), | |
cheerio = require('cheerio'), | |
async = require('async'), | |
array = []; | |
req('http://dummy.com', function (error, response, body) { | |
var $ = cheerio.load(body); | |
$('strong').each(function(i, item) { | |
array.push($(this).text()); | |
}); | |
}); | |
return array; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment