title: Scraping HTML table using BS4
body: <p>I have been trying to extract the table data from web url <a href="https://www.binance.com/en/futures/funding-history/0" rel="nofollow noreferrer">https://www.binance.com/en/futures/funding-history/0</a>.</p>
  <p>The code below extracts only a portion(headers only) of the table.</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  r = requests.get('https://www.binance.com/en/futures/funding-history/0')
  soup = BeautifulSoup(r.text, 'html.parser')
  resultsTable = soup.findChildren('table')[0]
  rows = resultsTable.findChildren(['tr'])
  print(rows)
  </code></pre>
  <p>Is there anything I have been missing or is there a better idea to do this job?</p>