title: `NoneType`-error when using BeautifulSoup
body: <p>Below is my code...</p>
  
  <pre><code>from bs4 import BeautifulSoup
  
  import requests
  
  
  for count in range(1,2):
  
  
      r = requests.get('http://manufacturer.indiatradepage.com/all/a_a_enterprises/' + str(count) + '/',headers={'User-Agent': 'Googlebot'})
  
      soup = BeautifulSoup(r.text,'lxml')
  
      data = soup.find('div',class_='container_main')
  
      for links in data.find_all('div',class_='com_countainer'):
          for link in links.find_all('a')[0:1]:
              l = link['href']
              r = requests.get(l)
              soup = BeautifulSoup(r.text,'lxml')
  
              data = soup.find('td',{"id":"intro_txt"})
              table1 = data.find('table',{"style":"max-height: 400px !important"})
  
              body1 = table1.find('div',class_='f_body')
  
  
              table2 = data.find('div',{"id":"f3_1"})
  
              div = table2.find('div',class_='f_body')
  
  
              body2 = div.find('div',{"style":"text-transform:capitalize; "})
  
              print body2.text + body1.text
  </code></pre>
  
  <p>i m getting this below error.</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File
    "C:/Python27/indiatradepage_try.py", line 19, in 
        body1 = table1.find('div',class_='f_body') AttributeError: 'NoneType' object has no attribute 'find'</p>
  </blockquote>
  
  <p>due to below error, my code is breaking everytime.</p>