'How to extract key and value from r=requests.get('http....')
So, i got
r=requests.get('http....')
r=r.json() // here I got json (probably)
then I want to print 'body' from this json
print(r['body'])
and i got eror: TypeError: list indices must be integers or slices, not str
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
