async function loadUrls(){
  console.log('loadUrls: Reading URLs from file ...');

  var rlp = readline.createInterface(
    { input: fs.createReadStream(infile) }
    );
    
  console.log('loadUrls: Initiating scrapes ...');
  for await (const line of rlp) {
      console.log(line);
      scrapeResults.push( scrapeArticle(line) );
    };

}
/* Read URLs from file and initiate web scrapes by adding promises
** to the result array
*/
Read URLs from file and initiate web scrapes by adding promises
to the result array
Read URLs from file and initiate web scrapes by adding promises to the result array
async function loadUrls(){
  console.log('loadUrls: Reading URLs from file ...');
  var rlp = readline.createInterface(
    { input: fs.createReadStream(infile) }
    );
  console.log('loadUrls: Initiating scrapes ...');
  for await (const line of rlp) {
      console.log(line);
      scrapeResults.push( scrapeArticle(line) );
    };
}
async function loadUrls ( ) { console . log ( 'loadUrls: Reading URLs from file ...' ) ; var rlp = readline . createInterface ( { input : fs . createReadStream ( infile ) } ) ; console . log ( 'loadUrls: Initiating scrapes ...' ) ; for await ( const line of rlp ) { console . log ( line ) ; scrapeResults . push ( scrapeArticle ( line ) ) ; } ; }
Read URLs from file and initiate web scrapes by adding promises
to the result array
Read URLs from file and initiate web scrapes by adding promises to the result array