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 speakers = require('./speakers.json'); | |
var request = require('request'); | |
var bl = require('bl'); | |
var urls = []; | |
for (x in speakers){ | |
var UserName = speakers[x].GithubUserName; | |
if (UserName !== null && UserName.length > 0){ | |
urls.push('https://api.github.com/users/' + UserName) |
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
//THE EXERCISE: | |
//This problem is the same as the previous problem (HTTP COLLECT) in that you need to use http.get(). | |
//However, this time you will be provided with three URLs as the first three command-line arguments. | |
//You must collect the complete content provided to you by each of the URLs and print it to the console (stdout). | |
//You don't need to print out the length, just the data as a String; one line per URL. | |
//The catch is that you must print them out in the same order as the URLs are provided to you as command-line arguments. | |
//MY ISSUE: | |
//This is problem #9 on LearnYouNode from nodeschool.io |
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 http = require('http'); | |
var bl = require('bl'); | |
var urls = []; | |
process.argv.slice(2).forEach(function(item){ | |
urls.push(item) | |
}); | |
console.log (urls) |
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
{ | |
"parentArray": [ | |
{ | |
"child_a": "sometext", | |
"child_b": "somemoretext" | |
}, | |
{ | |
"child_c": "abitmoretext", | |
"child_d": "lookatallofthistext" | |
} |