Automatic RSS check and output to text file (помогите! help!)

10 views
Skip to first unread message

Андрей

unread,
Apr 16, 2023, 9:19:28 AM4/16/23
to newsboat
Good afternoon!

Can you help me? I have a task like this:

There is an RSS-url
I need at intervals of, say, 30 minutes, check for the latest news in this RSS, and if there is fresh news, then save it to a text file bookmarks.txt format:

article link - article title.

I found a sample script, and reworked it to save it in the format I mentioned above:

url="$1"
title="$2"
description="$3"
feed_title="$4"

echo "${url} ${title}" > bookmarks.txt

But now how do I automate this process? I.e. what is the key to start newsboat so that it executes bookmark immediately, with the news that it has already saved in bookmarks.txt, so that it marks as read and next time that it skips them!

Alexander Batischev

unread,
May 1, 2023, 12:23:49 PM5/1/23
to Андрей, newsboat
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello,

On Sun, Apr 16, 2023 at 06:19:27AM -0700, Андрей wrote:
>There is an RSS-url
>I need at intervals of, say, 30 minutes, check for the latest news in this
>RSS, and if there is fresh news, then save it to a text file bookmarks.txt
>format:
>
>article link - article title.

Newsboat is meant to be driven by a human, so it's not possible to
completely automate this. I think a better approach would be to use
Python and its feedparser module, or maybe rsstail utility and some
command-line fu. Best of luck!

- --
Regards,
Alexander Batischev

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

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

iQIzBAEBCAAdFiEEzmxDB5NIWOP9lKAPNWlhogyL/QMFAmRP52YACgkQNWlhogyL
/QPPQRAAkNfqG9um9icBSUFKcEgoxiQFXuwRbqH0scqfs3856cq68TFheeNIF45q
wAQGK+FNiyPBBiVMLU/YLRaVk0UpkgywZAjXxYJMVTXTC3K/M2Q14UHwFWRVuHwO
gB8QoZUlU2m4jR0umo4wfwG+RrZuTPklYUI3MBs3zJ6x3W/HCZLb9Hi3lLspveDH
Ohk+0LMqTaIL7tynmHU/MMH57p8xpTtHFyr5fzn7YLUgBvSBjONgGNq873k+VD7k
3/ADSwESWYeWmnk5+VrbYfqjmc9ddDU64lqhAgTuc/qn1vpKWj3ovyuNiZYT+d38
1lx359OPc5D38zx3caKb9LNGpl7CdRwIEUBrIb0ctgr/csUpx3ldHcn5pOykBbKT
EFC2+1tRB53gPC8RfOYvDYzA46eL8XDCHpfP32m/bgAcAy8qSRP9HjFlGeLyh5Gm
0iupsxlGdznYye0kXH5WvQ5ZQIpGIFApOL6LuQlug4VijFt8Kf6IX+VTDLC3GYab
KRMrqI/TdEAC8XfNW+Hu1j1fhY007/jARKW/w0KsDfEdeH6leYB95KGWriOVm7I3
nNNp/CX+PM61/RZ+YPt3Wvp4GZsl79RX23W6fUXBdsRUSkxGe1hbf1DAArePTAtY
sRHEkbIxQa8+KDmAnKiMSyplTLSRe7siOeu707RVdO7KQDnnfUc=
=sobI
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages