https://github.com/codesoap/erss
Effortlessly create and modify RSS 2.0 files from your terminal
https://github.com/codesoap/erss
Last synced: 12 months ago
JSON representation
Effortlessly create and modify RSS 2.0 files from your terminal
- Host: GitHub
- URL: https://github.com/codesoap/erss
- Owner: codesoap
- Created: 2019-07-29T21:17:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-25T19:03:08.000Z (about 4 years ago)
- Last Synced: 2025-05-17T09:11:20.282Z (about 1 year ago)
- Language: Go
- Size: 148 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Usage
```console
$ rss-create --title 'My Blog' --link 'my.blog.net' \
$ --description 'My Blog about programming and cleansing products.' \
$ blog.rss
$ rss-add-item --title "RSS's not dead!" --link 'my.blog.net/articles/1' \
$ --pubDate "$(date '+%d %b %Y %H:%M:%S %z')" blog.rss
$ cat blog.rss
My Blog
my.blog.net
My Blog about programming and cleansing products.
RSS's not dead
my.blog.net/articles/1
06 Aug 2019 18:43:28 +0200
$ # I forgot to specify the language of my blog, so let's change that.
$ # First I need to create a new RSS file, with the complete configuration.
$ rss-create --title 'My Blog' --link 'my.blog.net' \
$ --description 'My Blog about programming and cleansing products.' \
$ --language 'en-us' fixed_blog.rss
$ # Now I can copy over the items from my existing blog.
$ rss-copy-items blog.rss fixed_blog.rss
$ mv fixed_blog.rss blog.rss
$ # If the items of your feed have become unordered (e.g. through multiple
$ # calls of rss-copy-items), you can sort them like this:
$ rss-sort-by-date blog.rss
$ # After a while my blog grew and I want to reduce the size of my RSS
$ # file, to avoid poor performance and problems with some feed
$ # aggregators. I can simply reduce the amount of items like this:
$ rss-tail -n 32 blog.rss
```
# Installation
1. `mkdir -p "$HOME/go/src/github.com/codesoap/" && cd "$HOME/go/src/github.com/codesoap/"`
(adapt if you've set a different `$GOPATH`)
2. `git clone https://github.com/codesoap/erss.git && cd erss/`
3. `go get ./...` to install dependencies
([codesoap/rss2](https://github.com/codesoap/rss2) and
[docopt/docopt.go](https://github.com/docopt/docopt.go))
4. `make install` to install erss (if you just want the binaries do
`make all`)
To uninstall erss call `make uninstall`.