title: Scraping financial data with R and rvest
body: <p>I am trying to get financial data from morningstar.com; I want to get <a href="http://financials.morningstar.com/income-statement/is.html?t=MSFT&amp;region=usa&amp;culture=en-US" rel="nofollow">i.e. MSFT yearly revenue data</a>.<br>They are in a row <code>&lt;div&gt;</code>of a main <code>&lt;div&gt;</code> table.<br>I followed some samples to get the main table:</p>
  
  <pre><code>url &lt;- "http://financials.morningstar.com/income-statement/is.html?t=MSFT&amp;region=usa&amp;culture=en-US"
  table &lt;- url %&gt;%
   read_html() %&gt;%
   html_nodes(xpath='//*[@id="sfcontent"]/div[3]/div[3]') %&gt;%
   html_table()
  </code></pre>
  
  <p>but I get an empty <code>list()</code>. <code>html_nodes</code> itself returns a <code>{xml_nodeset (0)}</code> that I don't know how to handle.</p>