Traceback (most recent call last): File "C:/Users/User/Downloads/new (5).py", line 45, in <module> func() File "C:/Users/User/Downloads/new (5).py", line 42, in func func() File "C:/Users/User/Downloads/new (5).py", line 42, in func func() File "C:/Users/User/Downloads/new (5).py", line 42, in func func() [Previous line repeated 8 more times] File "C:/Users/User/Downloads/new (5).py", line 25, in func rewss = requests.get('https://market.csgo.com/api/v2/search-item-by-hash-name?key=xxxxxxxxxxxxxxxxxxxxxxxxx&hash_name=' + hashname).json() File "C:\Users\User\PycharmProjects\untitled\venv\lib\site-packages\requests\models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) с чем связана ?
def func(): while True: result = requests.get('https://market.csgo.com/api/v2/items?key=Osadasdasdasdasd').json() if result['items'] != 'null': m = len(result['items']) time.sleep(3) for x in range(m): itemid = result['items'][x]['item_id'] classid = result['items'][x]['classid'] hashname = result['items'][x]['market_hash_name'] time.sleep(3) rewss = requests.get('https://market.csgo.com/api/v2/search-item-by-hash-name?key=sadsadasdasdasdas&hash_name=' + hashname).json() if rewss['data'] != []: Код def func(): while True: result = requests.get('https://market.csgo.com/api/v2/items?key=Osadasdasdasdasd').json() if result['items'] != 'null': m = len(result['items']) time.sleep(3) for x in range(m): itemid = result['items'][x]['item_id'] classid = result['items'][x]['classid'] hashname = result['items'][x]['market_hash_name'] time.sleep(3) rewss = requests.get('https://market.csgo.com/api/v2/search-item-by-hash-name?key=sadsadasdasdasdas&hash_name=' + hashname).json() if rewss['data'] != []: