Created
August 28, 2011 07:08
-
-
Save logankoester/1176344 to your computer and use it in GitHub Desktop.
Scraping trending respositories on Github with Node.js
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 fetch_github_trending_repos = function() { | |
var scraper = require('scraper'); | |
var repos = []; | |
scraper('https://github.com/explore', function(err, jQuery) { | |
if (err) {throw err} | |
jQuery('.ranked-repositories li h3').each(function() { | |
repos.push 'https://github.com/' + jQuery(this).text().trim().replace(/\s/g, ''); | |
}); | |
}); | |
return(repos); | |
} |
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
https://github.com/fgnass/spin.js | |
https://github.com/twitter/bootstrap | |
https://github.com/imakewebthings/deck.js | |
https://github.com/harvesthq/chosen | |
https://github.com/madrobby/keymaster | |
https://github.com/joshbuddy/ghostbuster | |
https://github.com/Shopify/batman | |
https://github.com/imathis/octopress | |
https://github.com/rstacruz/js2coffee | |
https://github.com/etsy/deployinator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment