title: Using Rvest to webscrape rankings
body: <p>I am wanting to scrape all rankings from the following website:</p>
  
  <p><a href="https://www.glassdoor.com/ratingsDetails/full.htm?employerId=432&amp;employerName=McDonalds#trends-overallRating" rel="nofollow noreferrer">https://www.glassdoor.com/ratingsDetails/full.htm?employerId=432&amp;employerName=McDonalds#trends-overallRating</a></p>
  
  <p>I have tried using CSS selectors, which tell me to use ".ratingNum", but it leaves me with blank data. I have also tried using the GET function, which results in a similar problem. </p>
  
  <pre><code># Attempt 1
  url &lt;- 'https://www.glassdoor.com/ratingsDetails/full.htm?employerId=432&amp;employerName=McDonalds#trends-overallRating'
  
  webpage &lt;- read_html(url)
  
  rank_data_html &lt;- html_nodes(webpage,'.rankingNum')
  
  rank_data &lt;- html_table(rank_data_html)
  
  head(rank_data)
  
  # Attempt 2
  res &lt;- GET("https://www.glassdoor.com/ratingsDetails/full.htm",
         query=list(employerId="432",
                    employerName="McDonalds"))
  
  doc &lt;- read_html(content(res, as="text"))
  
  html_nodes(doc, ".ratingNum")
  
  rank_data &lt;- html_table(rank_data_html)
  
  head(rank_data)
  </code></pre>
  
  <p>I expect the result to give me a list of all of the rankings, but instead it is giving me an empty list, or a list that doesn't include the rankings.</p>