title: Python: Iterate through an html file
body: <p>I'm trying to iterate through an html file from the internet.</p>
  
  <pre><code>target = br.response().read()
  for row in target:
      if "[some text]" in row:
      print next(target)
  </code></pre>
  
  <p>The problem is this loop iterates over each character in the html file, so it'll never find a match. How do I get it to iterate through each row instead?</p>
  
  <p>I've tried <code>target = target.splitlines()</code> , but that really messes up the file.</p>