title: TypeError: 'NoneType' object is not iterable - I can't find solution
body: <p>I got this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "scr.py", line 18, in &lt;module&gt;
      for title in link.find('a'):
  TypeError: 'NoneType' object is not iterable
  </code></pre>
  
  <p>And the lines are these:</p>
  
  <pre><code>for each in soup.find_all(attrs={'class' : 'table table-bordered table-custom'}):
      for link in each.find_all('td'):
          for title in link.find('a'):
              print "\033[1;37m%s" % title.text
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>#!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from bs4 import BeautifulSoup
  import requests
  import sys
  
  if len(sys.argv) &lt; 2:
      print "Falta um paramêtro."
  
  else:
      data = requests.get("http://theanonybay.org/search?q=%s" % sys.argv[1].replace(" ", "%20")).text
  
      soup = BeautifulSoup(data)
  
      for each in soup.find_all(attrs={'class' : 'table table-bordered table-custom'}):
          for link in each.find_all('td'):
              for title in link.find('a'):
                  print "\033[1;37m%s" % title.text
  
              for little in link.find_all(attrs={'class' : 'btn btn-flat btn-xs btn-warning'}):
                  print "Magnet Link:\033[0;37m", little.get('href'),"\n\n"
  </code></pre>