Giter VIP home page Giter VIP logo

rss-to-telegram-bot's Introduction

RSSTT

GitHub tag (latest by date) Docker Pulls Docker Stars GitHub Workflow Status (branch) Docker Image Size (latest by date)

RSS to Telegram bot

A self-hosted telegram JavaScript/TypeScript bot that dumps posts from RSS feeds to a telegram chat. This script was created because all the third party services were unreliable.

The bot is publicly available on telegram: http://t.me/rss_t_bot

help

Docker

For the docker image go to: https://hub.docker.com/r/bokker/rss.to.telegram/

Installation

Dont forget to use the right node version. nvm use or match the version in .nvmrc

npm install
cp .env.example .env
npm run dev

Dont forget to fill the .env file

A telegram bot is needed that the script will connect to. https://botsfortelegram.com/project/the-bot-father/ Running the script and typing in /help will reveal all the commands

  1. Clone the script
  2. Save and run
  3. Use the telegram commands to manage feeds

Known issues

There are no known issues but the telegram API has limitations on how many messages per chat you can receive

Docker

This container uses Redis and Bull for queuing the messages

docker create \
  --name=rss.to.telegram \
  -e TOKEN=chat:token \
  -e DEBUG=false \
  -e REDIS_HOST=127.0.0.1 \
  -e REDIS_PORT=6379 \
  -e REDIS_USER=default \
  -e REDIS_PASSWORD=secret \
  -e REDIS_MUTEX=random-value \
  -v /path/to/host/config:/app/config \
  --restart unless-stopped \
  bokker/rss.to.telegram

Prisma

Prisma is used to manage SQLite structure changes and as a ORM

To create any change you need to do the following:

  1. Backup current database
  2. Alter the prisma.schema
  3. npx prisma migrate dev -n migration-name
  4. test the migration on an old version of the database npx prisma migrate deploy
  5. test the migration by having no database npx prisma migrate deploy

rss-to-telegram-bot's People

Contributors

alfonder avatar bokker 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rss-to-telegram-bot's Issues

/help doesn't work

The bot answers to /help command:
ERROR: Error: 400: Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 543

Messages duplicates with redis queue

I am running develop branch in unraid container
Sometimes messages from sources gets duplicated
Looking at logs, i think that message is sent, even if it is error in logs like this

[Nest] 194  - 03/28/2023, 5:18:54 PM   DEBUG [RssService] last: https://3dnews.ru/1084145
[Nest] 194  - 03/28/2023, 5:18:54 PM   DEBUG [RssService] -------------done------------------
Error: Unable to parse XML.
    at /app/node_modules/rss-parser/lib/parser.js:36:25
    at Parser.<anonymous> (/app/node_modules/xml2js/lib/parser.js:304:18)
    at Parser.emit (node:events:394:28)
    at Parser.exports.Parser.Parser.parseString (/app/node_modules/xml2js/lib/parser.js:314:16)
    at Parser.parseString (/app/node_modules/xml2js/lib/parser.js:5:59)
    at /app/node_modules/rss-parser/lib/parser.js:33:22
    at new Promise (<anonymous>)
    at Parser.parseString (/app/node_modules/rss-parser/lib/parser.js:32:16)
    at RssService.handleInterval (/app/dist/src/rss/rss.service.js:115:41)
    at runMicrotasks (<anonymous>)
.....
-------checking feed: 3dnews----------
[Nest] 194  - 03/28/2023, 5:19:04 PM   DEBUG [RssService] last: https://3dnews.ru/1084145
[Nest] 194  - 03/28/2023, 5:19:04 PM   DEBUG [RssService] new items: 1
[Nest] 194  - 03/28/2023, 5:19:04 PM   DEBUG [RssService] Adding job: https://3dnews.ru/1084145 chat: -1001883154959
[Nest] 194  - 03/28/2023, 5:19:04 PM   DEBUG [RssService] saving: https://3dnews.ru/1084145
[Nest] 194  - 03/28/2023, 5:19:04 PM   DEBUG @Process id:10 attempts:0 message:https://3dnews.ru/1084145
[Nest] 194  - 03/28/2023, 5:19:04 PM   DEBUG [RssService] Done! saving checkpoint: https://3dnews.ru/1084145
[Nest] 194  - 03/28/2023, 5:19:04 PM   DEBUG [RssService] -------------done------------------
[Nest] 194  - 03/28/2023, 5:19:11 PM   DEBUG [RssService] 

Screenshots:
image
image

Only URL

Hi,

Thanks for your contribution it works like a charm but I only get URL of my RSS Feed posted.
I'm not a python guy but I can see that your script take more than just URL so I'm assuming that something has to be changed either in my rss feed format or in the python script.

[feature request]

It it possible to add persistence storage?
Now sometime after reboot i need to add the links again.

Migration is broken

After upgrade to version 2.0.1 all subscriptions are gone.
It's very bad that database has just become broken. It's obvious, that sqlite migration (existed in the project) doesn't work at all. Now on /list command the bot answers:
ERROR: The database is empty

cannot remove rss feeds

Hi,

the help file indicates that I can remove an RSS feed by typing:
/remove !Title!

Indeed, the bot returns a message to indicate that the title is removed, but it continues to remain in the database.
e.g.
/list
continues to show all titles added, including the ones that I tried to remove.

telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception.

2022-04-07 09:57:24,141 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception.
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/apscheduler/executors/base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
  File "telegramRSSbot.py", line 131, in rss_monitor
    for name, url_list in rss_dict.items():
RuntimeError: dictionary changed size during iteration

Not sure as to why this happens, I have a medium sized feed list, articles are sent to Telegram as they are posted

Does not work when CloudFlare is in front of the RSS feed

Hi,

I am trying to add CamelCamelCamel price alert RSS feed to this bot, but getting a invalid RSS feed error. Looking at the response more closely. It appears there is Cloudflare in front of it that prevents DDoS, not sure if it is triggered by user-agent or something. But the response the bot gets is a CloudFlare response instead so the RSS feed can't be fetched.

Related discussions about issues with Cloudflare and RSS feeds

https://community.cloudflare.com/t/cloudflare-blocking-some-feed-readers-from-accessing-armenian-rss-feeds/226111/5

Not sure if the check can be simply bypassed by mimicking a browser UA. Probably not if Cloudflare is worth their salt?

I can't share the direct link to the feed because it is tied to my personal account. But you can find RSS feed for CamelCamelCamel under account settings https://camelcamelcamel.com/account

Is it invalid?

Docker deployment completed All commands are invalid.

send /help to the bot to get this message:

RSS to Telegram bot

After successfully adding a RSS link, the bot starts fetching the feed every 60 seconds. (This can be set) Titles are used to easily manage RSS feeds and need to contain only one word

commands:

/add title http://www(.)URL(.)com

/help Shows this text

/remove !Title! removes the RSS link

/list Lists all the titles and the RSS links from the DB

/test Inbuilt command that fetches a post from Reddits RSS.

error adding an RSS feed

I'm getting this error:
ERROR: connection refused/not valid RSS link when trying to add xml links

missing 'job' error

jobqueue.py", line 427, in run
self.callback(CallbackContext.from_job(self, dispatcher))
TypeError: rss_monitor() missing 1 required positional argument: 'job'
thats the error. idk what can i do pls help me.

Minimise docker image size

Hi, it appears the docker image size can be dramatically reduced by using python:3-alpine as base. Do you mind uploading the current dockerfile so I might be able to PR it? Thanks!

Traceback Error

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/telegram/ext/dispatcher.py", line 270, in process_update
handler.handle_update(update, self)
File "/usr/local/lib/python2.7/dist-packages/telegram/ext/commandhandler.py", line 171, in handle_update
return self.callback(dispatcher.bot, update, **optional_args)
File "telegramRSSbot.py", line 65, in cmd_rss_add
args[1]
IndexError: list index out of range

Can someone help out ?

[doubt] dispatcher - ERROR

Has anyone else had this same error as me?
I dont know what s wrong

the error output in console:
2021-06-24 20:41:09,743 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception. Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "telegramRSSbot.py", line 166, in rss_monitor if (url_list[1] != rss_d.entries[0]['link']): IndexError: list index out of range 2021-06-24 21:00:25,159 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception. Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "telegramRSSbot.py", line 166, in rss_monitor if (url_list[1] != rss_d.entries[0]['link']): IndexError: list index out of range

RSS Feed titles

Hello.thanks a lot for the bot...

right now bot only sends the link of the entries is rss feeds.
is it possible to add entry title & published time for each feed item too?

thanks.

Repeatedly failing to send messages to telegram due to rate limit

This happens when:

  1. A lot of new items are fetched.
  2. RSS-to-Telegram-Bot tries to send all the new items in a very short period of time.

Logs:

-------checking feed: <feed>----------
[Nest] 99  - 09/01/2022, 5:40:31 AM   DEBUG [RssService] last item: https://<redacted url>?id=632024&hit=1
[Nest] 99  - 09/01/2022, 5:40:31 AM   DEBUG [RssService] new elements: 200
[Nest] 99  - 09/01/2022, 5:40:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630660&hit=1
[Nest] 99  - 09/01/2022, 5:40:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630661&hit=1
[Nest] 99  - 09/01/2022, 5:40:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630684&hit=1
[Nest] 99  - 09/01/2022, 5:40:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630692&hit=1
[Nest] 99  - 09/01/2022, 5:40:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630704&hit=1
[Nest] 99  - 09/01/2022, 5:40:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630718&hit=1
[Nest] 99  - 09/01/2022, 5:40:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630726&hit=1
[Nest] 99  - 09/01/2022, 5:40:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630728&hit=1
[Nest] 99  - 09/01/2022, 5:40:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630770&hit=1
[Nest] 99  - 09/01/2022, 5:40:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630784&hit=1
[Nest] 99  - 09/01/2022, 5:40:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630786&hit=1
[Nest] 99  - 09/01/2022, 5:40:42 AM   DEBUG [RssService] sending: https://<redacted url>?id=630787&hit=1
[Nest] 99  - 09/01/2022, 5:40:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630788&hit=1
[Nest] 99  - 09/01/2022, 5:40:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630789&hit=1
[Nest] 99  - 09/01/2022, 5:40:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630790&hit=1
[Nest] 99  - 09/01/2022, 5:40:44 AM   DEBUG [RssService] sending: https://<redacted url>?id=630792&hit=1
[Nest] 99  - 09/01/2022, 5:40:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630799&hit=1
[Nest] 99  - 09/01/2022, 5:40:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630802&hit=1
[Nest] 99  - 09/01/2022, 5:40:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630804&hit=1
[Nest] 99  - 09/01/2022, 5:40:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630818&hit=1
[Nest] 99  - 09/01/2022, 5:40:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630826&hit=1
[Nest] 99  - 09/01/2022, 5:40:50 AM   ERROR [Scheduler] Error: 429: Too Many Requests: retry after 42
[Nest] 99  - 09/01/2022, 5:45:31 AM   DEBUG [RssService]

-------checking feed: <feed>----------
[Nest] 99  - 09/01/2022, 5:45:31 AM   DEBUG [RssService] last item: https://<redacted url>?id=632024&hit=1
[Nest] 99  - 09/01/2022, 5:45:31 AM   DEBUG [RssService] new elements: 200
[Nest] 99  - 09/01/2022, 5:45:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630660&hit=1
[Nest] 99  - 09/01/2022, 5:45:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630661&hit=1
[Nest] 99  - 09/01/2022, 5:45:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630684&hit=1
[Nest] 99  - 09/01/2022, 5:45:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630692&hit=1
[Nest] 99  - 09/01/2022, 5:45:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630704&hit=1
[Nest] 99  - 09/01/2022, 5:45:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630718&hit=1
[Nest] 99  - 09/01/2022, 5:45:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630726&hit=1
[Nest] 99  - 09/01/2022, 5:45:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630728&hit=1
[Nest] 99  - 09/01/2022, 5:45:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630770&hit=1
[Nest] 99  - 09/01/2022, 5:45:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630784&hit=1
[Nest] 99  - 09/01/2022, 5:45:39 AM   DEBUG [RssService] sending: https://<redacted url>?id=630786&hit=1
[Nest] 99  - 09/01/2022, 5:45:42 AM   DEBUG [RssService] sending: https://<redacted url>?id=630787&hit=1
[Nest] 99  - 09/01/2022, 5:45:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630788&hit=1
[Nest] 99  - 09/01/2022, 5:45:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630789&hit=1
[Nest] 99  - 09/01/2022, 5:45:44 AM   DEBUG [RssService] sending: https://<redacted url>?id=630790&hit=1
[Nest] 99  - 09/01/2022, 5:45:44 AM   DEBUG [RssService] sending: https://<redacted url>?id=630792&hit=1
[Nest] 99  - 09/01/2022, 5:45:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630799&hit=1
[Nest] 99  - 09/01/2022, 5:45:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630802&hit=1
[Nest] 99  - 09/01/2022, 5:45:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630804&hit=1
[Nest] 99  - 09/01/2022, 5:45:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630818&hit=1
[Nest] 99  - 09/01/2022, 5:45:50 AM   DEBUG [RssService] sending: https://<redacted url>?id=630826&hit=1
[Nest] 99  - 09/01/2022, 5:45:50 AM   ERROR [Scheduler] Error: 429: Too Many Requests: retry after 41
[Nest] 99  - 09/01/2022, 5:50:31 AM   DEBUG [RssService]

-------checking feed: <feed>----------
[Nest] 99  - 09/01/2022, 5:50:31 AM   DEBUG [RssService] last item: https://<redacted url>?id=632024&hit=1
[Nest] 99  - 09/01/2022, 5:50:31 AM   DEBUG [RssService] new elements: 200
[Nest] 99  - 09/01/2022, 5:50:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630660&hit=1
[Nest] 99  - 09/01/2022, 5:50:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630661&hit=1
[Nest] 99  - 09/01/2022, 5:50:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630684&hit=1
[Nest] 99  - 09/01/2022, 5:50:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630692&hit=1
[Nest] 99  - 09/01/2022, 5:50:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630704&hit=1
[Nest] 99  - 09/01/2022, 5:50:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630718&hit=1
[Nest] 99  - 09/01/2022, 5:50:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630726&hit=1
[Nest] 99  - 09/01/2022, 5:50:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630728&hit=1
[Nest] 99  - 09/01/2022, 5:50:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630770&hit=1
[Nest] 99  - 09/01/2022, 5:50:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630784&hit=1
[Nest] 99  - 09/01/2022, 5:50:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630786&hit=1
[Nest] 99  - 09/01/2022, 5:50:42 AM   DEBUG [RssService] sending: https://<redacted url>?id=630787&hit=1
[Nest] 99  - 09/01/2022, 5:50:42 AM   DEBUG [RssService] sending: https://<redacted url>?id=630788&hit=1
[Nest] 99  - 09/01/2022, 5:50:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630789&hit=1
[Nest] 99  - 09/01/2022, 5:50:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630790&hit=1
[Nest] 99  - 09/01/2022, 5:50:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630792&hit=1
[Nest] 99  - 09/01/2022, 5:50:47 AM   DEBUG [RssService] sending: https://<redacted url>?id=630799&hit=1
[Nest] 99  - 09/01/2022, 5:50:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630802&hit=1
[Nest] 99  - 09/01/2022, 5:50:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630804&hit=1
[Nest] 99  - 09/01/2022, 5:50:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630818&hit=1
[Nest] 99  - 09/01/2022, 5:50:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630826&hit=1
[Nest] 99  - 09/01/2022, 5:50:49 AM   ERROR [Scheduler] Error: 429: Too Many Requests: retry after 42
[Nest] 99  - 09/01/2022, 5:55:31 AM   DEBUG [RssService]

-------checking feed: <feed>----------
[Nest] 99  - 09/01/2022, 5:55:31 AM   DEBUG [RssService] last item: https://<redacted url>?id=632024&hit=1
[Nest] 99  - 09/01/2022, 5:55:31 AM   DEBUG [RssService] new elements: 200
[Nest] 99  - 09/01/2022, 5:55:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630660&hit=1
[Nest] 99  - 09/01/2022, 5:55:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630661&hit=1
[Nest] 99  - 09/01/2022, 5:55:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630684&hit=1
[Nest] 99  - 09/01/2022, 5:55:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630692&hit=1
[Nest] 99  - 09/01/2022, 5:55:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630704&hit=1
[Nest] 99  - 09/01/2022, 5:55:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630718&hit=1
[Nest] 99  - 09/01/2022, 5:55:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630726&hit=1
[Nest] 99  - 09/01/2022, 5:55:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630728&hit=1
[Nest] 99  - 09/01/2022, 5:55:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630770&hit=1
[Nest] 99  - 09/01/2022, 5:55:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630784&hit=1
[Nest] 99  - 09/01/2022, 5:55:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630786&hit=1
[Nest] 99  - 09/01/2022, 5:55:42 AM   DEBUG [RssService] sending: https://<redacted url>?id=630787&hit=1
[Nest] 99  - 09/01/2022, 5:55:42 AM   DEBUG [RssService] sending: https://<redacted url>?id=630788&hit=1
[Nest] 99  - 09/01/2022, 5:55:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630789&hit=1
[Nest] 99  - 09/01/2022, 5:55:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630790&hit=1
[Nest] 99  - 09/01/2022, 5:55:44 AM   DEBUG [RssService] sending: https://<redacted url>?id=630792&hit=1
[Nest] 99  - 09/01/2022, 5:55:47 AM   DEBUG [RssService] sending: https://<redacted url>?id=630799&hit=1
[Nest] 99  - 09/01/2022, 5:55:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630802&hit=1
[Nest] 99  - 09/01/2022, 5:55:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630804&hit=1
[Nest] 99  - 09/01/2022, 5:55:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630818&hit=1
[Nest] 99  - 09/01/2022, 5:55:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630826&hit=1
[Nest] 99  - 09/01/2022, 5:55:50 AM   ERROR [Scheduler] Error: 429: Too Many Requests: retry after 41
[Nest] 99  - 09/01/2022, 6:00:31 AM   DEBUG [RssService]

-------checking feed: <feed>----------
[Nest] 99  - 09/01/2022, 6:00:31 AM   DEBUG [RssService] last item: https://<redacted url>?id=632024&hit=1
[Nest] 99  - 09/01/2022, 6:00:31 AM   DEBUG [RssService] new elements: 200
[Nest] 99  - 09/01/2022, 6:00:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630660&hit=1
[Nest] 99  - 09/01/2022, 6:00:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630661&hit=1
[Nest] 99  - 09/01/2022, 6:00:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630684&hit=1
[Nest] 99  - 09/01/2022, 6:00:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630692&hit=1
[Nest] 99  - 09/01/2022, 6:00:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630704&hit=1
[Nest] 99  - 09/01/2022, 6:00:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630718&hit=1
[Nest] 99  - 09/01/2022, 6:00:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630726&hit=1
[Nest] 99  - 09/01/2022, 6:00:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630728&hit=1
[Nest] 99  - 09/01/2022, 6:00:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630770&hit=1
[Nest] 99  - 09/01/2022, 6:00:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630784&hit=1
[Nest] 99  - 09/01/2022, 6:00:39 AM   DEBUG [RssService] sending: https://<redacted url>?id=630786&hit=1
[Nest] 99  - 09/01/2022, 6:00:42 AM   DEBUG [RssService] sending: https://<redacted url>?id=630787&hit=1
[Nest] 99  - 09/01/2022, 6:00:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630788&hit=1
[Nest] 99  - 09/01/2022, 6:00:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630789&hit=1
[Nest] 99  - 09/01/2022, 6:00:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630790&hit=1
[Nest] 99  - 09/01/2022, 6:00:44 AM   DEBUG [RssService] sending: https://<redacted url>?id=630792&hit=1
[Nest] 99  - 09/01/2022, 6:00:47 AM   DEBUG [RssService] sending: https://<redacted url>?id=630799&hit=1
[Nest] 99  - 09/01/2022, 6:00:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630802&hit=1
[Nest] 99  - 09/01/2022, 6:00:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630804&hit=1
[Nest] 99  - 09/01/2022, 6:00:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630818&hit=1
[Nest] 99  - 09/01/2022, 6:00:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630826&hit=1
[Nest] 99  - 09/01/2022, 6:00:50 AM   ERROR [Scheduler] Error: 429: Too Many Requests: retry after 42
[Nest] 99  - 09/01/2022, 6:05:31 AM   DEBUG [RssService]

-------checking feed: <feed>----------
[Nest] 99  - 09/01/2022, 6:05:31 AM   DEBUG [RssService] last item: https://<redacted url>?id=632024&hit=1
[Nest] 99  - 09/01/2022, 6:05:31 AM   DEBUG [RssService] new elements: 200
[Nest] 99  - 09/01/2022, 6:05:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630660&hit=1
[Nest] 99  - 09/01/2022, 6:05:31 AM   DEBUG [RssService] sending: https://<redacted url>?id=630661&hit=1
[Nest] 99  - 09/01/2022, 6:05:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630684&hit=1
[Nest] 99  - 09/01/2022, 6:05:32 AM   DEBUG [RssService] sending: https://<redacted url>?id=630692&hit=1
[Nest] 99  - 09/01/2022, 6:05:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630704&hit=1
[Nest] 99  - 09/01/2022, 6:05:33 AM   DEBUG [RssService] sending: https://<redacted url>?id=630718&hit=1
[Nest] 99  - 09/01/2022, 6:05:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630726&hit=1
[Nest] 99  - 09/01/2022, 6:05:37 AM   DEBUG [RssService] sending: https://<redacted url>?id=630728&hit=1
[Nest] 99  - 09/01/2022, 6:05:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630770&hit=1
[Nest] 99  - 09/01/2022, 6:05:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630784&hit=1
[Nest] 99  - 09/01/2022, 6:05:38 AM   DEBUG [RssService] sending: https://<redacted url>?id=630786&hit=1
[Nest] 99  - 09/01/2022, 6:05:42 AM   DEBUG [RssService] sending: https://<redacted url>?id=630787&hit=1
[Nest] 99  - 09/01/2022, 6:05:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630788&hit=1
[Nest] 99  - 09/01/2022, 6:05:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630789&hit=1
[Nest] 99  - 09/01/2022, 6:05:43 AM   DEBUG [RssService] sending: https://<redacted url>?id=630790&hit=1
[Nest] 99  - 09/01/2022, 6:05:44 AM   DEBUG [RssService] sending: https://<redacted url>?id=630792&hit=1
[Nest] 99  - 09/01/2022, 6:05:47 AM   DEBUG [RssService] sending: https://<redacted url>?id=630799&hit=1
[Nest] 99  - 09/01/2022, 6:05:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630802&hit=1
[Nest] 99  - 09/01/2022, 6:05:48 AM   DEBUG [RssService] sending: https://<redacted url>?id=630804&hit=1
[Nest] 99  - 09/01/2022, 6:05:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630818&hit=1
[Nest] 99  - 09/01/2022, 6:05:49 AM   DEBUG [RssService] sending: https://<redacted url>?id=630826&hit=1
[Nest] 99  - 09/01/2022, 6:05:49 AM   ERROR [Scheduler] Error: 429: Too Many Requests: retry after 42```

Update docker image

DockerHub image needs to be updated according to the latest changes.
Thanks.

XML support

Hello.
Thanks for the great bot.
When i add rss links that ends with xml bot does'nt support it.

is it possible to add xml support ?!

thanks.

Syntax Error

Hi All ,

I'm trying to run the bot with the command below :

python telegramRSSbot.py

This is what come up :

File "telegramRSSbot.py", line 100
SyntaxError: Non-ASCII character '\xe2' in file telegramRSSbot.py on line 100, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

If someone can help

Thanks in Advance :

rss-feed settings are reset

After the container is restarted, the rss-feed settings are reset.
Can this be avoided?
That is, after rebooting, the bot needs to add the RSS feed again.

Feed title

Hello.
Thanks for the bot.

Right now the bot only sends the url of the feed items.
Is it possible to add feed title/feed image ( or custom imge ) to the bot ? with htmls tags for telegram.

Thanks.

XML stops after a while

Hello.
i have added multiple (3) rss feeds to bot. all are xml feed.

it gets this error :

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/apscheduler/executors/base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
  File "telegramRSSbot.py", line 132, in rss_monitor
    if (url_list[1] != rss_d.entries[0]['link']):
IndexError: list index out of range
2021-02-01 02:04:29,749 - apscheduler.executors.default - INFO - Running job "rss_monitor (trigger: interval[0:01:00], next run at: 2021-02-01 02:05:29 UTC)" (scheduled at 2021-02-01 02:04:29.744567+00:00)
2021-02-01 02:04:30,280 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception.

Different RSS feeds in multiple groups.

Is it possible to add multiple chatIDs in order to separate the RSS feeds into different groups (for me it would be general RSS with YouTube)?
Coping the Git folder didn't work for me (changed the name of the folder and the telegramRSSbot.py script though which might caused the problem).
A solution I had in my mind: dumping all chatIDs into the script and choosing later in the telegram app during the /add procedure one of those IDs.
I'm not a developer so I cannot talk about practical details :)

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.