title: Can't scrape some tables with BeautifulSoup
body: <p>I was able to write a simple script to grab tables from etfdb.com However, some of the tables are not working. I think because they are dynamic and not static tables. I was wondering if someone could share some insight on how I could grab these.</p>
  <p>Does not work:
  <a href="https://etfdb.com/etfs/style/value/" rel="nofollow noreferrer">https://etfdb.com/etfs/style/value/</a></p>
  <p>Works fine:
  <a href="https://etfdb.com/compare/market-cap/" rel="nofollow noreferrer">https://etfdb.com/compare/market-cap/</a></p>
  <p>My original code:</p>
  <pre><code>def get_etfs(url, table_num):
    webpage = requests.get(url)
    soup = BeautifulSoup(webpage.content, &quot;html.parser&quot;)
    soup_table = soup.find(&quot;table&quot;)
    tables = pd.read_html(str(soup_table))
    df = tables[table_num]
    print(df)
  </code></pre>