bokker / rss-to-telegram-bot Goto Github PK
View Code? Open in Web Editor NEWRSS to Telegram python script
Home Page: http://t.me/rss_t_bot
License: GNU General Public License v3.0
RSS to Telegram python script
Home Page: http://t.me/rss_t_bot
License: GNU General Public License v3.0
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.
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.
ERROR: connection refused/not valid RSS link
if you think this is a mistake open an issue with the given link
What's wrong with these links:
https://www.rollekino.fi/feed/?post_type=movie
https://www.rollekino.fi/leffat/feed
I don't get it why they wouldn't work. They're perfectly valid.
DockerHub image needs to be updated according to the latest changes.
Thanks.
It it possible to add persistence storage?
Now sometime after reboot i need to add the links again.
This happens when:
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```
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.
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.
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.
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.
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.
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
Hi
Thank you for your script. I have encountered a "Unable to get local issuer certificate error" when i try to add certain RSS feeds (e.g. https://www.bis.org/doclist/cbspeeches.rss and https://bankunderground.co.uk/feed/). Could you advise if there is anything that can be done to the script to get around this, please.
Thank you.
For example, this RSS feed https://nitter.net/Nrg8000/rss
The bot only posts links from that RSS and that's it. No images no text.
Can you put curl in the docker?
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
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
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
opml file format import
Please provide a Heroku deployable link.
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]
I am trying to add (https://rpilocator.com/feed/?country=US&cat=PI4) but keep getting the not valid error. I've validated it with a few different sites and it seems to be setup OK.
Hello, I try to add this rss : https://www.extreme-down.io/rss.xml
But not working
Any idea ?
Thanks
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 ?
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 :)
telegramRSSbot.py:138: TelegramDeprecationWarning: Old Handler API is deprecated - see https://git.io/fxJuV for details
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
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
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!
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.
I'm getting this error:
ERROR: connection refused/not valid RSS link
when trying to add xml links
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 :
Hi, I'm building an telegram-rss channel and it seems reasonable to have all previous messages of a rss feed posted to the channel at the first time. What do you think?
Can you create new commands?
/load -->YT URL
I would like to trigger my YT Downloader with Curl
https://github.com/manbearwiz/youtube-dl-server
via >> curl -X POST --data-urlencode "url={{url}}" http://{{host}}:8080/youtube-dl/q
You have a little Bobby Tables all over your code. You're not supposed to format with %
. You're supposed to pass a tuple as the second parameter. Please read through Python's sqlite3
module documentation:
# Never do this -- insecure! symbol = 'RHAT' c.execute("SELECT * FROM stocks WHERE symbol = '%s'" % symbol) # Do this instead t = ('RHAT',) c.execute('SELECT * FROM stocks WHERE symbol=?', t) print(c.fetchone())
Thanks to @expectocode for finding this, not me.
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.
Test works fine
List works fine
but the bot doesn't post feeds automatically to the groups
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.