title: Parse/save/get csv response from URL with NodeJS
body: <p>I'm trying to get the results from a Yahoo finance URL:</p>
  
  <p><a href="http://finance.yahoo.com/d/quotes.csv?s=XOM=sn1yr" rel="nofollow">http://finance.yahoo.com/d/quotes.csv?s=XOM=sn1yr</a>
  which returns:</p>
  
  <pre><code>"XOM",4:00pm - &lt;b&gt;83.25`&lt;/b&gt;`,2.11,13.42
  </code></pre>
  
  <p>I'm trying to store these results in a database using Mongoose.  I've got some code working that saves from an existing CSV file(with different but related contents as you can see):</p>
  
  <pre><code> var writer = new csv.CsvWriter(process.stdout);
    reader.setColumnNames(["Symbol","Company","StockExchange"]);
    reader.addListener('data', function(data) {
    console.log(data);
    var stock = new Stock(data).save();
   });
  </code></pre>
  
  <p>I'm trying to do something like:</p>
  
  <p>Scraper is a module found at <a href="https://github.com/mape/node-scraper" rel="nofollow">https://github.com/mape/node-scraper</a></p>
  
  <pre><code>scraper('http://search.twitter.com/search?q=javascript', function(err, $) {
  if (err) {throw err;}
  
  $('.msg').each(function() {
      console.log($(this).text().trim()+'\n');
  });
   });
  </code></pre>
  
  <p>but with the CSV results from the Yahoo URL without putting the response into a separate CSV file and was told I need to use stream.write somehow. I'm new to Node and would appreciate some help figuring this out.  Thanks in advance for the help!</p>