Subj : Re: RSS Feeds To : Bugz From : Gamgee Date : Sat Apr 18 2020 15:41:00 -=> Bugz wrote to 3LUPINE FURMEN <=- LF> Is there a way to import RSS feeds directly into a message base? LF> -!- Bu> Yes. Bug_ubuntu in the bot channel does this all the time. Bu> It's just a SMOP. (Small Matter Of Programming.) Bu> Basically, use mutil to load messages into the message base. Bu> I have a silly python3 script that reads the RSS feed, mashes it Bu> up and outputs what mutil needs. Bu> Ok, I actually use feedparser, and it does 99% of the RSS work Bu> for me. Bu> The other "challenge" is getting HTML into nice text output. Bu> I accomplish that with a simple call to elinks: Bu> text = check_output( ["elinks", "-dump", "0", Bu> "-dump-width", "72", "--no-references", Bu> "--no-numbering", "./rss_feed.html", Bu> universal_newlines=True, shell=False) Bu> This takes html and makes it nice 72 column format. It Bu> understands (HTML) center, word wrap, tables, etc. Bu> Elinks is a text based browser after all. ;) Bu> I went a little crazy with the mutil ini part, I use jinja2 Bu> (template) to generate it. Bu> You're welcome to a copy of it. I'd attach it here, but I'm not Bu> sure how well that would work. Hi Bugz! Very interesting. If you don't mind sharing, I'd love to have a look at what you've got. If you're willing you could email me at: gamgees (at) gmail dot com . Thanks! .... This MSG written by pouring warm tea on an Ouija board. === MultiMail/Linux v0.52 --- SBBSecho 3.10-Linux * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (21:2/138) .