title: Extracting html table from a website in R
body: <p>Hi I am trying to extract the table from the <code>premierleague</code> website. </p>
  
  <p>The package I am using is  <code>rvest</code> package and the code I am using in the inital phase is as follows: </p>
  
  <pre><code>library(rvest)
  library(magrittr)
  premierleague &lt;- read_html("https://fantasy.premierleague.com/a/entry/767830/history")
  premierleague %&gt;% html_nodes("ism-table")
  </code></pre>
  
  <p>I couldn't find a html tag that would work to extract the <code>html_nodes</code> for rvest package.   </p>
  
  <p>I was using similar approach to extract data from "<a href="http://admissions.calpoly.edu/prospective/profile.html" rel="nofollow noreferrer">http://admissions.calpoly.edu/prospective/profile.html</a>" and I was able to extract the data. The code I used for calpoly is as follows: </p>
  
  <pre><code>library(rvest)
  library(magrittr)
  CPadmissions &lt;- read_html("http://admissions.calpoly.edu/prospective/profile.html")
  
  CPadmissions %&gt;% html_nodes("table") %&gt;%
    .[[1]] %&gt;%
    html_table()
  </code></pre>
  
  <p>Got the code above from youtube through this link: <a href="https://www.youtube.com/watch?v=gSbuwYdNYLM&amp;ab_channel=EvanO%27Brien" rel="nofollow noreferrer">https://www.youtube.com/watch?v=gSbuwYdNYLM&amp;ab_channel=EvanO%27Brien</a> </p>
  
  <p>Any help on getting data from fantasy.premierleague.com is highly appreciated. Do I need to use some kind of API ? </p>