title: Struggling to Scrape Table using rvest Package
body: <p>I've recently starting using R again after a long hiatus and I'm extremely rusty, especially when it comes to html and scraping data (w/rvest).</p>
  <p>My main issue right now is identifying the correct nodes/'XPath' to input into my function to get it to pull the correct data, more specifically, I'm trying to scrape college hockey play-by-play data from the NCAA website (<a href="https://www.ncaa.com/game/5935492/play-by-play" rel="nofollow noreferrer">example</a>)....</p>
  <p>I've tried numerous approaches without any success.. for example:</p>
  <p>Since it seems each period's data is nested in separate &quot;div.play-by-play-period&quot; classes(?), I tried focusing on scraping one period, then building from there...</p>
  <p>So I drilled down to the table containing the 1st period's data ('tbody') and copy the xpath and pasted into the code below:</p>
  <pre><code>url &lt;- &quot;https://www.ncaa.com/game/5935492/play-by-play&quot;
  
  gm &lt;- url %&gt;%
    read_html() %&gt;%
    html_nodes(xpath='//*[@id=&quot;gamecenterAppContent&quot;]/div/div[3]/div[2]/table/tbody') %&gt;%
    html_table()
  </code></pre>
  <p>Resulting in a &quot;List of 0&quot;...</p>
  <p>Any help would be greatly appreciated!</p>