cdies / news_aggregator Goto Github PK
View Code? Open in Web Editor NEWПолный агрегатор новостей
Полный агрегатор новостей
Добрый день!
Попробовал запустить бота. Все параметры в конфиг добавил. При запуске прошёл авторизацию и получил сообщение - ValueError: Cannot find any entity corresponding (номер канала)
Как исправить?
Спасибо.
Приветствую.
Настроил бота, добавил свои rss летны, но почему-то не работает проверка на дубликаты.
Если запустить main.py, то через какое-то время он просто заново дублирует все записи.
Если остановить main.py и запустить заново, то тоже не идет проверка и он снова добавляет дубликаты.
С каналами не пробовал, речь только про rss.
На что нужно обратить внимание?
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.