I get this structure using the HTMLTreeParser, and I need to have the text contained in the page
doc <- htmlTreeParse(url, useInternalNodes = FALSE)
doc
$file
[1] "http://www.google.com/trends/fetchComponent?q=asdf,qwerty&cid=TIMESERIES_GRAPH_0&export=3"
$version
[1] ""
$children
$children$html
<html>
<body>
<p>// Data table response google.visualization.Query.setResponse([INSERT LOT OF JSON HERE])</p>
</body>
</html>
attr(,"class")
[1] "XMLDocumentContent"
I'm looking for what's on the "p" block. I did not found anything that could help me today.
So, how can I get those data?