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

Need an endpoint for Telegram -> RSS parsing #15

Closed
vas3k opened this issue Feb 6, 2020 · 9 comments
Closed

Need an endpoint for Telegram -> RSS parsing #15

vas3k opened this issue Feb 6, 2020 · 9 comments

Comments

@vas3k
Copy link
Owner

vas3k commented Feb 6, 2020

I used three different services to get RSS feeds from Telegram channels. One of them got me banned, the second one returns an error 500 from time to time, the third was Chinese and it inserts hieroglyphs into the feeds :D

I think it's time to use some github library and write our own parser. It would be nice to have an endpoint that takes the Telegram channel name and returns its RSS. Don't forget about pics and videos.

If anyone want to help me with that — feel free to comment below and open a PR.

@vas3k vas3k changed the title Need an endpoint with Telegram -> RSS parsing Need an endpoint for Telegram -> RSS parsing Feb 6, 2020
@vitalii-honchar
Copy link
Contributor

Hello! I'm interested in this. I will work on this in this weekends.

@mishfish
Copy link

mishfish commented Feb 6, 2020

Maybe this can help?
https://github.com/RSS-Bridge/rss-bridge

@uncletoxa
Copy link

can you give an example of this three project? Probably it would be beneficial to understand what was wrong.

@vas3k
Copy link
Owner Author

vas3k commented Feb 6, 2020

@WeaxMe cool, thanks. You can create another django app for that. Like parsing or something. I suppose there will be more custom parsers in future.

@mishfish interesting project to use with other sites, but it doesn't seem to support Telegram (at least as I can see)

@toxaz
https://tg.i-c-a.su/ — banned me
http://tg2rss.xyz — 500 errors
https://rsshub.app/ — Chinese :)

@viacheslavleonov
Copy link

@vas3k Looks like rss-bridge supports Telegram - https://github.com/RSS-Bridge/rss-bridge/blob/master/bridges/TelegramBridge.php

@vas3k
Copy link
Owner Author

vas3k commented Feb 6, 2020

@viacheslavleonov ah, but it's PHP :D

@Nerten
Copy link

Nerten commented Feb 6, 2020

rsshub too opensource https://github.com/DIYgod/RSSHub

@vshlapakov
Copy link

Wow, didn't know about RSSHub, thanks for sharing.

I also searched for anything working recently, found nothing, wrote the script this weekend based on telethone and rfeed https://gist.github.com/vshlapakov/5507afb30b01b8c3a666970ddcd01d1b.

I'm using a separate Telegram account for channels, the script walks through all of them and creates RSS feed file for each, then puts it right to the nginx-served directory to be read later by any RSS feed reader (also downloads images locally if possible). It's far from ideal but works well in most cases, though doesn't support videos yet (I haven't found a way to get a public link for a telegram media attachment, so went the most straightforward way).

The funniest thing here is that I came to the idea after hanging out at infomate.club.

@vas3k
Copy link
Owner Author

vas3k commented Feb 12, 2020

Done in #16
Closing

@vas3k vas3k closed this as completed Feb 12, 2020
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

7 participants