title: TypeError: Type str doesn't support the buffer API # find method?
body: <p>Here is my input: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  ..........
  &lt;div class="content"&gt;
        &lt;div class="stream-item-header"&gt;
            &lt;a class="account-group js-account-group js-action-profile js-user-profile-link js-nav" href="https://twitter.com/jimcramer" data-user-id="14216123"&gt;
      &lt;img class="avatar js-action-profile-avatar" src="Twitter%20_%20Search%20-%20%23tsla_files/988b4c2369623b634782f4c0469ec38f_normal.jpg" alt=""&gt;
      &lt;strong class="fullname js-action-profile-name show-popup-with-id"&gt;Jim Cramer&lt;/strong&gt;
      &lt;span&gt;‏&lt;/span&gt;&lt;span class="username js-action-profile-name"&gt;&lt;s&gt;@&lt;/s&gt;&lt;b&gt;jimcramer&lt;/b&gt;&lt;/span&gt;
    &lt;/a&gt;
         &lt;small class="time"&gt;
      &lt;a href="https://twitter.com/jimcramer/status/405348028417994752" class="tweet-timestamp js-permalink js-nav js-tooltip" title="3:51 PM - 26 Nov 13"&gt;&lt;span class="_timestamp js-short-timestamp " data-time="1385477475" data-long-form="true"&gt;26 Nov&lt;/span&gt;&lt;/a&gt;
  &lt;/small&gt;
        &lt;/div&gt;
        &lt;p class="js-tweet-text tweet-text"&gt;Love this spirited &amp;amp; rigorous &lt;a href="https://twitter.com/search?q=%24TSLA&amp;amp;src=ctag" data-query-source="cashtag_click" class="twitter-cashtag pretty-link js-nav" dir="ltr"&gt;&lt;s&gt;$&lt;/s&gt;&lt;b&gt;TSLA&lt;/b&gt;&lt;/a&gt; defense ! RT &lt;a href="https://twitter.com/InfennonLabs" class="twitter-atreply pretty-link" dir="ltr"&gt;&lt;s&gt;@&lt;/s&gt;&lt;b&gt;InfennonLabs&lt;/b&gt;&lt;/a&gt;: Why are these idiots selling &lt;a href="https://twitter.com/search?q=%23tsla&amp;amp;src=hash" data-query-source="hashtag_click" class="twitter-hashtag pretty-link js-nav" dir="ltr"&gt;&lt;s&gt;#&lt;/s&gt;&lt;b&gt;&lt;strong&gt;tsla&lt;/strong&gt;&lt;/b&gt;&lt;/a&gt; are they that blind? &lt;a href="https://twitter.com/jimcramer" class="twitter-atreply pretty-link" dir="ltr"&gt;&lt;s&gt;@&lt;/s&gt;&lt;b&gt;jimcramer&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;
        &lt;div class="stream-item-footer"&gt;
  &lt;div class="context"&gt;
        &lt;span class="metadata with-icn"&gt;
          &lt;i class=" badge-top"&gt;&lt;/i&gt;Favorited 5 times&lt;/span&gt;
  &lt;/div&gt;
  ...........
  &lt;/html&gt;
  </code></pre>
  
  <p>For instance this "input" is in my <code>input</code> variable.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>  start_link = input.find(' &lt;p class="js-tweet-text tweet-text" ')
  </code></pre>
  
  <p>if i run it, i'll get the following error:</p>
  
  <pre><code>  start_link = input.find('&lt;p class="js-tweet-text tweet-text" ')
  TypeError: Type str doesn't support the buffer API
  </code></pre>
  
  <p>How can I fix this?</p>
  
  <p>NOTE: type of my input variable is: <code>class 'bytes'</code></p>