Skip to content

Instantly share code, notes, and snippets.

@arisolt
Created January 20, 2013 12:50
Show Gist options
  • Save arisolt/4578423 to your computer and use it in GitHub Desktop.
Save arisolt/4578423 to your computer and use it in GitHub Desktop.
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