-
-
Save paulodiovani/dfeea4caaa7ed2ebb049 to your computer and use it in GitHub Desktop.
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
(function() { | |
'use strict'; | |
var env = require('jsdom').env; | |
// first argument can be html string, filename, or url | |
env('http://programmingexcuses.com/', function(err, window) { | |
if (err) console.error(err); | |
var $ = require('jquery')(window); | |
console.log( $('body .wrapper center').text() ); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It requires jsdom and jquery.