title: Python - How to scrape Tr/Td table data using 'requests & BeautifulSoup'
body: <p>I'm new to programming. I'm trying out my first Web Crawler program that will help me with my job. I'm trying to build a program that will scrape tr/td table data from a web page, but am having difficulties succeeding. Here is what I have so far:</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  
  def start(url):
      source_code = requests.get(url).text
      soup = BeautifulSoup(source_code)
      for table_data in soup.find_all('td', {'class': 'sorting_1'}):
          print(table_data)
  
  start('http://www.datatables.net/')
  </code></pre>
  
  <p>My goal is to print out each line and then export it to an excel file. </p>
  
  <p>Thank you,
  -Cire</p>