I need to get part of a json response
Part of my code:
r = scraper.get('https://nsa.gob.ye/ha/api/scar-doc/01/09090909/', json=payload, headers=headers, cookies=cookies)
Part of the Response print(r.text):
<div class="request-info" style="clear: both" aria-label="request info">
<pre class="prettyprint"><b>GET</b> /ha/api/scar-doc/01/09090909/</pre>
</div>
<div class="response-info" aria-label="response info">
<pre class="prettyprint"><span class="meta nocode"><b>HTTP 200 OK</b>
<b>Allow:</b> <span class="lit">GET, HEAD, OPTIONS</span>
<b>Content-Type:</b> <span class="lit">application/json</span>
<b>Vary:</b> <span class="lit">Accept</span>
</span>{
'datos': {
'data': {
'tipo_documento': '01',
'numero_documento': '09090909',
'apellido_paterno': 'SHREK',
'apellido_materno': 'SHREK',
'nombres': 'SHREK',
'edad_anios': 111,
'str_fecha_nacimiento': '00/00/0000'
},
'resultado': 'Enc'
}
}</pre>
</div>
</div>
I need to get 'str_fecha_nacimiento' content using beautifulsoup. Thanks