Skip to content

Fuwn/suzuri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“° suzuri

Command-line Interface to sumi.news

Who is Suzuri? Sumi Sakurasawa's dog.

Usage

You can download the script and run it locally, but I'd recommend fetching and running it from GitHub to ensure that you are always on the latest version:

bash <(curl -s "https://raw.githubusercontent.com/Fuwn/suzuri/main/suzuri")

Hint: Alias this in your shell profile: alias suzuri="bash <(curl -s "https://raw.githubusercontent.com/Fuwn/suzuri/main/suzuri")"

Token

Obtain your sumi.news token via the s cookie on sumi.news.

--help

usage: suzuri token [folder]

positional arguments:
  token           sumi.news session token
  folder          sumi.news feed folder

environment variables:
  SUZURI_TOKEN    substitution for token
  SUZURI_FOLDER   substitution for folder
  SUZURI_REVERSE  reverse the output feed
  SUZURI_MINIMAL  output only linked titles
  SUZURI_RAW      output raw markdown
  SUZURI_RSS      output raw application/rss+xml

Optionally, omit the token and folder arguments and export the environment variables SUZURI_TOKEN and SUZURI_FOLDER.

Dependencies

Cool Ideas

  • Pipe it into gum's choose subcommand
  • Display the most recent feed item in your status-bar
  • Echo out the most recent feed item when you start your shell
  • Generate an RSS feed of your feeds to read with local tooling; e.g., newsboat.

newsboat Integration

# ~/.config/newsboat/urls

"exec:SUZURI_RSS=1 SUZURI_MINIMAL=1 SUZURI_REVERSE=1 /path/to/suzuri <token>"
"exec:SUZURI_RSS=1 SUZURI_MINIMAL=1 SUZURI_REVERSE=1 /path/to/suzuri <token> <folder>"

Licence

This project is licensed with the GNU General Public License v3.0.

About

πŸ“° Command-line Interface to sumi.news

Topics

Resources

License

Stars

Watchers

Forks

Languages