title: Css selector issue with rvest and NHL statistics
body: <p>I want to scrape data from hockey-reference.com, specifically from this link:</p>
  
  <p><a href="https://www.hockey-reference.com/leagues/NHL_1991.html" rel="nofollow noreferrer">https://www.hockey-reference.com/leagues/NHL_1991.html</a></p>
  
  <p>I want the 4th table, called "Team Statistics," and I also want to subtract the first and last rows (but that can be for another time).</p>
  
  <p>Initially, I want to get the scrape working with the 1991 link, but I want to eventually scrape every link from 1991 to 2017. </p>
  
  <pre><code>library(tidyverse)
  library(rvest)
  
  stat_urls &lt;- "https://www.hockey-reference.com/leagues/NHL_1991.html"
  </code></pre>
  
  <p>Right now, I have the 1991 link only, for simplicity. I cannot seem to find the correct css selection, even though I have tried multiple different ones, after a pretty thorough search using the "inspect" source of the actual webpage. I have tried the following css selections:</p>
  
  <pre><code>table#stats.sortable.stats_table.now.sortable
  #stats
  #all_stats
  #all_stats &gt; div.table_outer_container
  #stats
  #stats &gt; tbody
  #div_stats (and all sorts of combos with this one)
  </code></pre>
  
  <p>None of these work, when used in the following code:</p>
  
  <pre><code>team_stats &lt;- stat_urls %&gt;% 
   read_html() %&gt;%
   html_nodes("#stats") %&gt;% 
   html_table(header = T)
  </code></pre>
  
  <p>All attempts with "xpath=" also failed. Any help with this would be absolutely phenomenal, and Go Preds!</p>
  
  <hr>