Created
February 21, 2014 02:19
-
-
Save nathan/9127577 to your computer and use it in GitHub Desktop.
Get the most recent featured Scratch project with stat
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 stat = Stat({ debug: true }); | |
// ... | |
stat.http('http://cors.io/scratch.mit.edu/').then(function(res) { | |
return stat.http('http://cors.io/scratch.mit.edu/' + res.match(/projects\/\d+/)); | |
}).then(function(s) { | |
return /<title>\s*(.*?) on Scratch\s*<\/title>/.exec(s)[1]; | |
}).then(console.log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment