title: R Disparity between browser and GET / getURL
body: <p>I'm trying to download the content from a page and I'm finding that the response data is either malformed or incomplete, as if GET or getURL are pulling before those data are loaded. </p>
  
  <pre><code>library(httr)
  library(RCurl)
  url &lt;- "https://www.vanguardcanada.ca/individual/etfs/etfs.htm"
  d1 &lt;- GET(url) # This shows a lot of {{ moustache style }} code that's not filled
  d2 &lt;- getURL(url) # This shows "" as if it didn't get anything
  </code></pre>
  
  <p>I'm not sure how to proceed. My goal is to get the numbers associated with the links that show in the browser: </p>
  
  <pre><code>https://www.vanguardcanada.ca/individual/etfs/etfs-detail-overview.htm?portId=9548
  </code></pre>
  
  <p>So in this case, I want to download and scrape '9548'. </p>
  
  <p>Not sure why getURL and GET seem to get wildly different results than what's presented in the browser. It seems like data is loaded slowly and almost as if GET and getURL pull before it's fully loaded. </p>
  
  <p>For example, look at: </p>
  
  <pre><code>x &lt;- "https://www.vanguardcanada.ca/individual/etfs/etfs-detail-prices.htm?portId=9548"
  readHTMLTable(htmlParse(GET(x)))
  </code></pre>