Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибка парсинга через докер #86

Open
VRverse opened this issue Jan 23, 2025 · 0 comments
Open

Ошибка парсинга через докер #86

VRverse opened this issue Jan 23, 2025 · 0 comments

Comments

@VRverse
Copy link

VRverse commented Jan 23, 2025

2025-01-24 02:06:46.466 | INFO     | __main__:__get_url:73 - Открываю страницу: https://www.avito.ru/all?q=kawasaki+1000sx https://www.avito.ru/all?q=kawasaki+ninja+1000
2025-01-24 02:06:55.701 | INFO     | __main__:__paginator:82 - Страница успешно загружена. Просматриваю объявления
2025-01-24 02:06:58.175 | INFO     | __main__:__parse_page:117 - Вижу 50 объявлений на странице
2025-01-24 02:07:43.070 | SUCCESS  | __main__:__pretty_log:198 - 1200000
Kawasaki ninja1000A
https://avito.ru/4263024782
Продавец: Компания

--- Logging error ---
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/notifiers/logging.py", line 50, in emit
    self.provider.notify(raise_on_errors=True, **data)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/notifiers/core.py", line 306, in notify
    rsp.raise_on_errors()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/notifiers/core.py", line 60, in raise_on_errors
    raise NotificationError(
    ...<4 lines>...
    )
notifiers.exceptions.NotificationError: Notification errors: Bad Request: chat not found
Call stack:
  File "/parse_avito/parser_cls.py", line 361, in <module>
    ).parse()
  File "/parse_avito/parser_cls.py", line 280, in parse
    self.__paginator()
  File "/parse_avito/parser_cls.py", line 88, in __paginator
    self.__parse_page()
  File "/parse_avito/parser_cls.py", line 161, in __parse_page
    self.__parse_other_data(item_info_list=data_from_general_page)
  File "/parse_avito/parser_cls.py", line 181, in __parse_other_data
    self.__pretty_log(data=item_info)
  File "/parse_avito/parser_cls.py", line 198, in __pretty_log
    logger.success(message)
  File "/usr/local/lib/python3.13/site-packages/loguru/_logger.py", line 2018, in success
    __self._log("SUCCESS", False, __self._options, __message, args, kwargs)
  File "/usr/local/lib/python3.13/site-packages/loguru/_logger.py", line 2002, in _log
    handler.emit(log_record, level_id, from_decorator, raw, colored_message)
  File "/usr/local/lib/python3.13/site-packages/loguru/_handler.py", line 197, in emit
    self._sink.write(str_record)
  File "/usr/local/lib/python3.13/site-packages/loguru/_simple_sinks.py", line 50, in write
    self._handler.handle(record)
  File "/usr/local/lib/python3.13/logging/__init__.py", line 1026, in handle
    self.emit(record)
  File "/usr/local/lib/python3.13/site-packages/notifiers/logging.py", line 52, in emit
    self.handleError(record)
Message: '1200000\nKawasaki ninja1000A\nhttps://avito.ru/4263024782\nПродавец: Компания\n'
Arguments: ()

стартовал докер с стандартными параметрами система archlinux.
Чтото с логами и в телеграмм отправит после того как все 50 результатов чекнет? а сразу не может после каждого succes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant