Is there any way to script Newsboat?

13 views
Skip to first unread message

Philip Rhoades P

unread,
Aug 17, 2025, 7:39:07 AM8/17/25
to newsboat
People,

I have been using Newsboat for quite a while now and it has been exactly what I had been looking for all that time - thanks to the developers!

However, more recently I have been cutting and pasting header lines from some podcast post info to put massage into MarkDown format -> HTML and then into a little web site I use to track particular political issues.

This works fine for occasional posts from different podcasters but now I would like to automate the process from one or two podcasters in particular.  I can see that there is a "Save" option for when I am looking at the details of a podcast but is there anyway I can get this information from a Bash script?

Thanks for any help / suggestions!

Phil.

Alexander Batischev

unread,
Dec 30, 2025, 4:30:45 AM (9 days ago) 12/30/25
to Philip Rhoades P, newsboat
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi, and apologies for such a delayed reply!

On Sun, Aug 17, 2025 at 04:39:07AM -0700, 'Philip Rhoades P' via newsboat wrote:
>is there anyway I can get this information from a Bash script?

Try `pipe-to`: https://newsboat.org/releases/2.42/docs/newsboat.html#pipe-to

Press | (pipe character), type the path to the Bash script, press Enter,
and the script will receive the current item at its stdin. The item is
formatted into plain text the same way as with "Save" command.

I realize this is suboptimal, because you have to parse the header and
the body yourself. To add insult to injury, we don't make any
compatibility guarantees about this format, although I think we only
ever added new fields to the header.

There are thoughts to provide a better facility for this, but nobody
picked that up yet: https://github.com/newsboat/newsboat/issues/1691

- --
Regards,
Alexander Batischev

PGP key 356961A20C8BFD03
Fingerprint: CE6C 4307 9348 58E3 FD94 A00F 3569 61A2 0C8B FD03

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEzmxDB5NIWOP9lKAPNWlhogyL/QMFAmlTm7gACgkQNWlhogyL
/QOIZw//fu69snohfXTFQuAlzou6bdxYZSwEW13pJ11R/y6NZrx32sGW/cJHoHpj
lyDQ9F/lIlAUeCZtBVU/CVblywNM4s4AeFsps3hoIKyWsf3v8g9xYyiNypkoFYPB
q9CKUL+UJxQu/rmsU7vDVPjrN321C7h3RphYy6fmo/ngbDTUfUmyBXwkJw8NIr4l
LKMsYuSwvC2tRwuuw4Ggp+tyDJnVj765g5X8EO28z0UVtdL4g2WK/LSoVT3wwUrF
hYselwwi3Y2co0fzYcWcv20azK9dgAh3zzwnXUYPNjchtdBEn2uMSGxzG+yVlo/S
JnyvToZyQESOCjwa3PKPs0632Zb4Vvyr4vHzbRFKsG3BR3AbZZyHZWQ7gczrfJj2
05LMDn5D4/6+SHcCXZzGe8414e0eFhlnnwIn401dAwdKt1+5PZjtZ8AT0HBprFcx
aE9OcpJz2dplwN8VvV06LJAKB0dZE0sIBAoxT4gkKVKcAWCq652NHQIXv4B1gIbj
oWGjGYJZWI5oAA6/F+IshhmYotgy4hB4mhsof9x3vWi+NWOO+6aWrd4MF6nCjVoZ
cO7jlayVMT0NWi2JE7PqRo4zPxkiE6fxO+jimSyUnJQvknp9ZuCptBUcmoWiYi5j
CRIhZSdfZ0ZN59lYSmS8WnLrSN6kYQG+oFaO27cHLBJw066b6Wo=
=UpHc
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages