title: Issues with web-scraping: Unable to retrieve the right table (Quarterly stock price) from MacroTrends using Tesla stock price
body: <p>I'm want to import data from the Tesla Quarterly Revenues into a pandas data frame. I keep extracting the Annual Revenues table instead (both tables are sides by sides on the webpage). How do I need to modify my code to extract the Quarterly Revenues? Thanks in advance.</p>
  <pre><code>```html_data  = requests.get('https://www.macrotrends.net/stocks/charts/TSLA/tesla/revenue').text 
  soup = BeautifulSoup(html_data, 'html5lib')
  tesla_revenue = pd.DataFrame(columns=['Date', 'Revenue'])
  
  for row in soup.find(&quot;tbody&quot;).find_all(&quot;tr&quot;):
      col = row.find_all(&quot;td&quot;)
      if (col != []):
          date =col[0].text
          revenue =col[1].text
          tesla_revenue = tesla_revenue.append({&quot;Date&quot;:date, &quot;Revenue&quot;:revenue}, ignore_index=True)
  
  tesla_revenue```
  </code></pre>