title: How to scrape a live java script webpage in R?
body: <p>I would like to scrape the play by play from <a href="http://stats.statbroadcast.com/statmonitr/?id=107165" rel="nofollow">http://stats.statbroadcast.com/statmonitr/?id=107165</a>. The link will bring you to the "Split Box" tab. I am interested in scraping the play by play tab as well as the home stats and the visitors stats tab. One of the problems is that no matter what tab you switch to the url never changes. If you use selector gadget the css-selector for the main contents of all the tabs are the same as well, which is "#stats". I am a novice at web scraping and most of the time I can successfully scrape a html page with the package <code>rvest</code>, but I am unfortunately lost as to how I should proceed with javascript. I have heard of JSON, but I am not sure how to combat the issue of all the tabs having the same url. </p>
  
  <p>My main goal is to be able to scrape the play by play, home stats, and visitor stats tab when the game is live. </p>
  
  <p>Any help would be much appreciated. Please let me know if I should provide more info.</p>