RSS reader-1 : srss  ; light weight, minnimal function.

- 注意：以下の記事を参考にされ、問題が生じた場合、責任は負えません。
- 基本的には私の忘備録です。
- 使用環境は **manjaro-linux** と時々macです。
- windowsでは利用できない設定があります。
- 本文を英語で記載してますが、中学生レベルですので、容易に理解できると思います。
- 英語で書くと、わかりにくいと思われる部分は、日本語にしてます。
- link先に了解なく引用している部分がありますので、問題があればご連絡ください。

# 前置き: CLI で使えるRSS Reader
今回は　srss　を紹介。
超軽量ですが、必要最小限の機能は持っています。
性能が低いPCで、利用するのに良いかもしれません。

- **[srss](https://github.com/sheepla/srss)** : Tiny application & minimal functions.
- **[cleed](https://github.com/radulucut/cleed?tab=readme-ov-file)** : Tiny application & output RSS feeds at once.
- **[newboat](https://newsboat.org/releases/2.10/docs/newsboat.html#_introduction)** : **Great application!** It has many functions and can be customized as you like. It's a bit heavy, comparing above two apps, but lighter than GUI applications.
- **[Vim Style Newsboat](https://github.com/qq542vev/vim-style-newsboat)** : Good example to customize newsboat. 

# 1. srss

- help menu

```
srss h

NAME:
   srss - A simple command line RSS feed reader

USAGE:
   srss [global options] command [command options] [arguments...]

VERSION:
   0.1.0

COMMANDS:
   add, a     Add url entry
   edit, e    Edit URL entry file
   tui, t     View items in the feed with built-in pager
   open, o    Open feed URL on your browser
   import, i  Import Feed URL from OPML file
   update, u  Fetch the latest feeds and update the cache
   help, h    Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help (default: false)
   --version, -v  print the version (default: false)
```


## 1-1. Install

Can not find package inside manjaro repository & AUR.
Download binary below.

https://github.com/sheepla/srss/releases

## 1-2. Set up

Read **srss** git page carefully.

https://github.com/sheepla/srss

##### 1-2-A. Add  URL.

*!! You can add only one URL at a time.!!*
```
### example.
## BBC.com
srss add http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml

## NHK
srss add https://www.nhk.or.jp/rss/news/cat0.xml
```

- Import Feed URL from OPML file, if you have.

```
srss import --path path/to/file.opml
```

##### 1-2-B. Edit URLs.

```
srss edit --editor vim
```

**URL-file location & can edit it by your editor. So you might del & add URLs here.**

>The location of the URL entry file depends on the OS. It is as follows:

```
Linux	$XDG_CONFIG_HOME/srss/urls.txt or $HOME/.config/srss/urls.txt
macOS	$HOME/Library/Application Support/srss/urls.txt
```

- contents of urls.txt. 
```
vim ~/.config/srss/urls.txt

http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
https://www.nhk.or.jp/rss/news/cat0.xml
https://forum.manjaro.org/c/announcements/stable-updates/12.rss
```

## 1-3. Read RSS feed.

- Update RSS at first & show RSS.
  **!! srss does not have autoupdate. You should update manually !!** 
```
## update RSS
srss u

## read RSS feed using you pager(less etc)
srss t
```

Quit **srss**.
```
type escape-key
```

- sample script : update every 30 min.

```
while true ; do
 srss u && srss t ;
 sleep 1800 ;
done 
```

- Open feed URL on your browser: start with o.
  But I do not know how it work.

> Use the open, o command, you can open the link of the selected item in your browser. You can select multiple items with Tab key.

```
srss o
```

## 1-4. How srss display RSS feed.

![srss_page.jpg](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3786524/54283244-ff33-47e7-8503-60c6639fe880.jpeg)


# Reference

https://github.com/sheepla/srss

https://github.com/radulucut/cleed?tab=readme-ov-file

https://newsboat.org/releases/2.10/docs/newsboat.html#_introduction

https://github.com/qq542vev/vim-style-newsboat