Giter Club home page Giter Club logo

news_aggregator's People

Contributors

cdies avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

news_aggregator's Issues

ValueError: Cannot find any entity corresponding

Добрый день!
Попробовал запустить бота. Все параметры в конфиг добавил. При запуске прошёл авторизацию и получил сообщение - ValueError: Cannot find any entity corresponding (номер канала)

Как исправить?

Спасибо.

Dont work check duplicate

Приветствую.

Настроил бота, добавил свои rss летны, но почему-то не работает проверка на дубликаты.
Если запустить main.py, то через какое-то время он просто заново дублирует все записи.

Если остановить main.py и запустить заново, то тоже не идет проверка и он снова добавляет дубликаты.

С каналами не пробовал, речь только про rss.
На что нужно обратить внимание?

Ошибка telethone

Здравствуйте.
Настроил всё как указано, в том числе, в предыдущих issues.
При запуске main.py выскакивает следующая ошибка:
2023-03-05 19:18:42,304 - newscrap - INFO
Start...

Traceback (most recent call last):
File "main.py", line 104, in
history = loop.run_until_complete(get_history(client, n_id,
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result()
File "/home/user/news_scrap/microservice/utils.py", line 27, in get_history messages = await client.get_messages(chat_id, amount_messages)
File "/home/user/.local/lib/python3.8/site-packages/telethon/client/messages.py", line 586, in get_messages return await it.collect()
File "/home/user/.local/lib/python3.8/site-packages/telethon/requestiter.py", line 113, in collect async for message in self:
File "/home/user/.local/lib/python3.8/site-packages/telethon/requestiter.py", line 74, in anext if await self._load_next_chunk():
File "/home/user/.local/lib/python3.8/site-packages/telethon/client/messages.py", line 184, in _load_next_chunk r = await self.client(self.request)
File "/home/user/.local/lib/python3.8/site-packages/telethon/client/users.py", line 30, in call return await self._call(self._sender, request, ordered=ordered)
File "/home/user/.local/lib/python3.8/site-packages/telethon/client/users.py", line 84, in _call result = await future
telethon.errors.rpcerrorlist.BotMethodInvalidError: The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot (caused by GetHistoryRequest)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.