title: Python requests extracting data from response.text
body: <pre><code>res = callback({&quot;Abn&quot;:&quot;123&quot;,
  &quot;AbnStatus&quot;:&quot;Active&quot;,
  &quot;AbnStatusEffectiveFrom&quot;:&quot;2020-12-12&quot;,
  &quot;Acn&quot;:&quot;&quot;,
  &quot;AddressDate&quot;:&quot;2020-02-04&quot;,
  &quot;AddressPostcode&quot;:&quot;1111&quot;,
  &quot;AddressState&quot;:&quot;CTG&quot;,
  &quot;BusinessName&quot;:[],
  &quot;EntityName&quot;:&quot;SOME NAME&quot;,
  &quot;EntityTypeCode&quot;:&quot;CPP&quot;,
  &quot;EntityTypeName&quot;:&quot;SOME SECTOR&quot;,
  &quot;Gst&quot;:&quot;2000-07-01&quot;,
  &quot;Message&quot;:&quot;&quot;})
  </code></pre>
  <p>I have got a response and I make the response in the string format given above. (note: Because the text 'callback' was in front I was not able to make the response in JSON format)</p>
  <p>How can I Iterating the string so that I can access all the values individually:</p>
  <p>Like:</p>
  <pre><code>Abn = 123 or
  AbnStatus = 'Active'
  </code></pre>