при выполнении
import json
import requests
yobit_btc_usd = requests.get('https://yobit.net/api/3/ticker/btc_usd',timeout=5)
json_string = json.loads(yobit_btc_usd)
if yobit_btc_usd.status_code == 200:
print('Все в норме!')
if yobit_btc_usd.status_code == 404:
print('Страница не существует!')
выдает
Traceback (most recent call last):
File “C:\Users\server-2\AppData\Local\Programs\Python\Python38-32\zap.py”, line 4, in <module>
json_string = json.loads(yobit_btc_usd)
File “C:\Users\server-2\AppData\Local\Programs\Python\Python38-32\lib\json\__init__.py”, line 341, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not Response
что это значит?