Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.2 kB
2
Indexable
Never
C:\Users\user\PycharmProjects\pythonProject3\venv\Scripts\python.exe C:\Users\user\PycharmProjects\pythonProject3\fa.py 
Traceback (most recent call last):
  File "C:\Users\user\PycharmProjects\pythonProject3\fa.py", line 58, in <module>
    parseWB("https://www.wildberries.ru/catalog/148420357/detail.aspx").parse()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\PycharmProjects\pythonProject3\fa.py", line 18, in __init__
    self.nm_id = self.get__nm_id(url)
                 ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\PycharmProjects\pythonProject3\fa.py", line 32, in get__nm_id
    nm_id = Items(**data)
            ^^^^^^^^^^^^^
  File "C:\Users\user\PycharmProjects\pythonProject3\venv\Lib\site-packages\pydantic\main.py", line 159, in __init__
    __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 1 validation error for Items
orders
  Field required [type=missing, input_value={'highBuyout': False, 'nm...: 148420357, 'qnt': 700}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.1/v/missing