title: Python 3 - Getting some strings from a HTTPrequest response
body: <p>I'm having a hard time extracting data from a httprequest response.</p>
  
  <p>Can somebody help me? Here's a part of my code:</p>
  
  <pre><code>import requests
  
  r = requests.get('https://www.example.com', verify=True)
  keyword = r.text.find('loginfield')
  print (keyword)
  
  &gt;&gt;&gt; 42136
  </code></pre>
  
  <p><strong>42136</strong> value basically means that string '<em>loginfield</em>' exists on the response.text. But how do I extract specific strings from it?</p>
  
  <p>Like for example I want to extract these exact strings:</p>
  
  <pre><code>&lt;title&gt;Some title here&lt;/title&gt;
  </code></pre>
  
  <p>or this one:</p>
  
  <pre><code>&lt;div id='bla...' #continues extracting of strings until it stops where I want it to stop extracting.
  </code></pre>
  
  <p>Anybody got an idea on how should I approach this problem?</p>