title: error message: 'NoneType' object has no attribute 'split'
body: <p>I am trying to separate position information and movie title information that I pulled from an html document using BeautifulSoup. </p>
  
  <p>I am pulling the information from lines like this:</p>
  
  <pre><code>&lt;div class="filmo-row even" id="writer-tt1308667"&gt;
  </code></pre>
  
  <p>And I want to separate "writer" and "tt1308667" by "-"</p>
  
  <p>My code is:</p>
  
  <pre><code>i=0
  b = soup.find_all('div')
  for row in b:
      Position_ttcode=row.get('id')
      print Position_ttcode
      split=Position_ttcode.split('-')
  </code></pre>
  
  <p>And I am getting the error:</p>
  
  <pre><code>AttributeError: 'NoneType' object has no attribute 'split' 
  </code></pre>
  
  <p>What am I missing? Please help! </p>