Created
June 29, 2014 00:46
-
-
Save mdarens/66eb25be26e362df58ba to your computer and use it in GitHub Desktop.
Scrape the amino acid profile from a page on nutritiondata.self.com
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 selectors = []; | |
for (var i = 77; i <= 96; i+=1) { | |
selectors.push('#NUTRIENT_'+i); | |
} | |
var proteinAmounts = []; | |
$.each(selectors, function(idx, sel) { | |
proteinAmounts.push($(sel).text()); | |
}); | |
proteinAmounts; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment