title: Scraping multiple table out of webpage in R
body: <p>I am trying to pull mutual funds data into R, My way of code works for single table but when there are multiple tables in a webpage, it doesn't work. </p>
  
  <p>Link - <a href="https://in.finance.yahoo.com/q/pm?s=115748.BO" rel="nofollow">https://in.finance.yahoo.com/q/pm?s=115748.BO</a></p>
  
  <h2>My Code</h2>
  
  <pre><code>url &lt;- "https://in.finance.yahoo.com/q/pm?s=115748.BO"
  library(XML)
  perftable &lt;- readHTMLTable(url, header = T, which = 1, stringsAsFactors = F)
  </code></pre>
  
  <p>but i am getting an error message.</p>
  
  <blockquote>
    <p>Error in (function (classes, fdef, mtable)  : 
      unable to find an inherited method for function ‘readHTMLTable’ for signature ‘"NULL"’
    In addition: Warning message:
    XML content does not seem to be XML: '<a href="https://in.finance.yahoo.com/q/pm?s=115748.BO" rel="nofollow">https://in.finance.yahoo.com/q/pm?s=115748.BO</a>' </p>
  </blockquote>
  
  <p>My Question is </p>
  
  <ol>
  <li>How to pull a specific table out of this webpage? </li>
  <li>How to pull all tables out of this webpage? </li>
  <li>when there are multiple links, what would be the easy way to pull specific table from each those webpages</li>
  </ol>
  
  <blockquote>
    <p>Ahttps://in.finance.yahoo.com/q/pm?s=115748.BO</p>
    
    <p>Ahttps://in.finance.yahoo.com/q/pm?s=115749.BO</p>
    
    <p>Ahttps://in.finance.yahoo.com/q/pm?s=115750.BO</p>
  </blockquote>
  
  <p>Remove "A" From the link, while using the link.</p>