title: AttributeError: 'NoneType' object has no attribute 'split'
body: <p>I have a script with these two functions:</p>
  
  <pre><code># Getting content of each page
  def GetContent(url):
      response = requests.get(url)
      return response.content
  
  # Extracting the sites
  def CiteParser(content):
      soup = BeautifulSoup(content)
      print "---&gt; site #: ",len(soup('cite'))
      result = []
      for cite in soup.find_all('cite'):
          result.append(cite.string.split('/')[0])
      return result
  </code></pre>
  
  <p>When I run program I have the following error:</p>
  
  <pre><code>result.append(cite.string.split('/')[0])
  AttributeError: 'NoneType' object has no attribute 'split'
  </code></pre>
  
  <p>Output Sample:</p>
  
  <pre><code>URL: &lt;URL That I use to search 'can be google, bing, etc'&gt;
  ---&gt; site #:  10
  site1.com
  .
  .
  .
  site10.com
  
  URL: &lt;URL That I use to search 'can be google, bing, etc'&gt;
  File "python.py", line 49, in CiteParser
      result.append(cite.string.split('/')[0])
  AttributeError: 'NoneType' object has no attribute 'split'
  </code></pre>