title: rcurl & innerHTML/innertext (scraping google trends with R)
body: <p>I've used rcurl a fair bit for simple text retrieval and simple scraping, but I'm stumped with google trends.  Let's use obama &amp; romney as an example. If you append "&amp;export=1", google trends returns a page displaying the data underlying the graph. </p>
  
  <p><a href="http://www.google.com/trends/explore?q=obama%2C+romney#q=obama%2C%20romney&amp;export=1" rel="nofollow">http://www.google.com/trends/explore?q=obama%2C+romney#q=obama%2C%20romney&amp;export=1</a></p>
  
  <p>On that page, the data lives in the reportContent div, which you can examine by inspecting the element for: </p>
  
  <pre><code>&lt;div id="reportContent" class="report-content"&gt; &lt;/div&gt;
  </code></pre>
  
  <p>More specifically, it is tucked away in the innerHTML and the innertext properties associated with that div.  I've never seen this before &amp; am wondering how to access that data with rcurl.  I'm also curious, if anyone happens to know, why google does not just present the data in simple html. I'll admit I'm not very knowledgable; I'm reading as much as I can about it, but what I have found out about the innertext property (not much) is not particularly illuminating or helpful in modifying my rcurl script. </p>