Created
January 17, 2012 08:42
-
-
Save dongyuwei/1625691 to your computer and use it in GitHub Desktop.
jsdom-test , find github coder's link
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
var jsdom = require('jsdom'), console = require('console'); | |
jsdom.env({ | |
html: 'https://github.com/popular/forked', | |
scripts: [ | |
'http://code.jquery.com/jquery-1.5.min.js' | |
], | |
done: function(errors, window) { | |
var $ = window.$; | |
console.log($('td.title > a').length); | |
$('td. owner > a').each(function() { | |
console.log("https://github.com" + $(this).attr('href')); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment