title: BeautifulSoup scraping investing.com ; AttributeError: issues with table
body: <p>I spend like hours to solve a presumably easy task but couldn't figure it out: I tried to scrape data from the following site that contains a table.</p>
  
  <p>However, I get an AttributeError if I try to extract the data from the table <code>containers.findAll('td')</code> </p>
  
  <p>I searched several sites but it seems to work for everyone but me.. Anyone an idea?</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup as soup
  from urllib.request import urlopen as uReq
  
  #OpenURL
  url = requests.get('https://www.investing.com/equities/apple-computer-inc-balance-sheet',headers={'User-Agent': 'Mozilla/5.0'})
  
  #DETERMINE FORMAT
  content_page = soup(url.content,'html.parser')
  
  containers = content_page.findAll('table', {'class':'genTbl reportTbl'})
  containers.findAll('td')   ## This doesnt work for some reason.. 
                             ## also tried .find('td') &amp;  ('tr') etc.
  </code></pre>
  
  <p>The data should then be extracted with a for loop, but anyway since the above doesn't work, I'm stuck here..</p>
  
  <pre><code>A=[]
  
  for row in containers.findAll("tr"):
      cells = row.findAll('td')
      states=row.findAll('th') #To store second column data
      if len(cells)==6: #Only extract table body not heading
          A.append(cells[0].find(text=True))
  </code></pre>
  
  <p>or</p>
  
  <pre><code>data = []
  rows = table.find_all('tr')
  for row in rows:
      cols = row.find_all('td')
      cols = [ele.text.strip() for ele in cols]
      data.append([ele for ele in cols if ele])
  </code></pre>