C:\Users\user\PycharmProjects\pythonProject3\venv\Scripts\python.exe C:\Users\user\PycharmProjects\pythonProject3\main.py
Traceback (most recent call last):
File "C:\Users\user\PycharmProjects\pythonProject3\main.py", line 61, in <module>
parseWB("https://www.wildberries.ru/catalog/148420357/detail.aspx").parse()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\PycharmProjects\pythonProject3\main.py", line 18, in __init__
self.nm_id = self.get__nm_id(url)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\PycharmProjects\pythonProject3\main.py", line 29, in get__nm_id
nm_id = Items.model_validate(respose.json())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\PycharmProjects\pythonProject3\venv\Lib\site-packages\pydantic\main.py", line 496, in model_validate
return cls.__pydantic_validator__.validate_python(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for Items
Input should be a valid dictionary or instance of Items [type=model_type, input_value=[{'highBuyout': False, 'n... 148420357, 'qnt': 700}], input_type=list]
For further information visit https://errors.pydantic.dev/2.1/v/model_type
Process finished with exit code 1