title: How do I get my code to read all tables when scraping a website?
body: <p>I am super new to python, This website has helped me out so much during the semester and I am hoping you guys could help me again. </p>
  
  <p>I need to scrape tables from <a href="https://money.cnn.com/data/hotstocks/" rel="nofollow noreferrer">https://money.cnn.com/data/hotstocks/</a>. </p>
  
  <p>Those tables are most actives, gainers, and losers. </p>
  
  <p>Now I was able to make this code work for me</p>
  
  <pre><code>     import requests
       from bs4 import BeautifulSoup
  
       url = 'http://money.cnn.com/data/hotstocks/index.html'
       response = requests.get(url)
       html = response.content
  
       soup = BeautifulSoup(html)
  
       all_stock = soup.find('div', attrs={'id':'wsod_hotStocks'})
  
       table = all_stock.find('table',attrs={'class':'wsod_dataTable wsod_dataTableBigAlt'  })
  
       for row in table.findAll('tr'):
           for cell in row.findAll('td'):
                   print(cell.text)
  </code></pre>
  
  <p>but that only gets me the most active table, I am not sure what I need to do to make my code get the other 2 tables that are on the website. </p>
  
  <p>I would appreciate any insight on what I am doing wrong and how to fix it. </p>
  
  <p>I don't know if I have to create code to scrape every table or if I can just tweak what I have. </p>
  
  <p>[This is the HTML from the website so you guys can get an idea of what I am doing. <a href="https://i.stack.imgur.com/HVqRS.png" rel="nofollow noreferrer">1</a></p>
  
  <blockquote>
    <p><a href="https://i.stack.imgur.com/xXeL1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xXeL1.png" alt="enter image description here"></a></p>
  </blockquote>