title: Python Web Scraper/Crawler - HTML Tables to Excel Spreadsheet
body: <p>I'm trying to make a web scraper that will pull tables from a website and then paste them onto an excel spreadsheet. I'm an EXTREME beginner at Python (and coding in general) - literally started learning a couple days ago. </p>
  
  <p>So, how do I make this web scraper/crawler?  Here's the code that I have: </p>
  
  <pre><code>import csv
  import requests
  from BeautifulSoup import BeautifulSoup
  
  url = 'https://www.techpowerup.com/gpudb/?mobile=0&amp;released%5B%5D=y14_c&amp;released%5B%5D=y11_14&amp;generation=&amp;chipname=&amp;interface=&amp;ushaders=&amp;tmus=&amp;rops=&amp;memsize=&amp;memtype=&amp;buswidth=&amp;slots=&amp;powerplugs=&amp;sort=released&amp;q='
  response = requests.get(url)
  html = response.content
  
  soup = BeautifulSoup(html)
  table = soup.find('table', attrs={'class': 'processors'})
  
  list_of_rows = []
  for row in table.findAll('tr')[1:]:
  list_of_cells = []
  for cell in row.findAll('td'):
      text = cell.text.replace('&amp;nbsp;', '')
      list_of_cells.append(text)
  list_of_rows.append(list_of_cells)
  
  outfile = open("./GPU.csv", "wb")
  writer = csv.writer(outfile)
  writer.writerow(["Product Name", "GPU Chip", "Released", "Bus", "Memory", "GPU clock", "Memory clock", "Shaders/TMUs/ROPs"])
  writer.writerows(list_of_rows)
  </code></pre>
  
  <p>Now the program WORKS for the website present in the code above.</p>
  
  <p>Now, I want to scrape the tables from the following website: <a href="https://www.techpowerup.com/gpudb/2990/radeon-rx-560d" rel="nofollow noreferrer">https://www.techpowerup.com/gpudb/2990/radeon-rx-560d</a></p>
  
  <p>Note that there are several tables on this page. What should I add/change to get the program to work on this page? I'm trying to get all of the tables, but if anyone could help me even get one of them, I would appreciate it so much!</p>