title: How to retrieve text from response made from Requests python
body: <p>I am trying to search inside the response of a request (I used Requests and Python). I get the response and check the type of it, which is UNICODE.</p>
  
  <p>I want to retrieve a specific link which is located between two other strings.
  I have tried different ways found online such as the:</p>
  
  <ul>
  <li><code>result = re.**search**('Currently: &lt;a ', s)</code></li>
  <li><code>url_file = response.**find**('Currently: &lt;a ', beg=0, end=len(response))</code></li>
  </ul>
  
  <p>Also tried to transform the UNICODE string to a normal string:</p>
  
  <ul>
  <li><code>s = unicodedata.normalize(response, title).encode('ascii','ignore')</code></li>
  </ul>
  
  <p>I get an error. </p>
  
  <p><strong>EDITED</strong></p>
  
  <p>For example:</p>
  
  <p>This works:</p>
  
  <pre><code>    s = 'asdf=5;iwantthis123jasd'
      result = re.search('asdf=5;(.*)123jasd', s)
      print result.group(1)
  </code></pre>
  
  <p>This doesn't work (returns error):</p>
  
  <pre><code>    s = 'Currently: &lt;a '
      result = re.search(r.text, s)
      print result.group(1)
  </code></pre>