title: finding the CSRF token inside an html page using Beautifulsoup
body: <p>The HTML looks something like this</p>
  
  <pre><code>&lt;input type="hidden" name="csrfToken" value="ajax:SOME_TOKEN"/&gt;
  </code></pre>
  
  <p>I've tried this a few different ways, but I keep getting an error. I thought this way looked right, but apparently not.</p>
  
  <pre><code>soup = BeautifulSoup(html_page)
  soup.find('input', {'name':'csrfToken'})
  </code></pre>
  
  <p>I keep getting:</p>
  
  <pre><code>TypeError: 'expected string or buffer'
  </code></pre>
  
  <p>any thoughts?</p>