https://github.com/dwarfmaster/rss_feeds
Create rss feeds from serialized content.
https://github.com/dwarfmaster/rss_feeds
Last synced: about 1 year ago
JSON representation
Create rss feeds from serialized content.
- Host: GitHub
- URL: https://github.com/dwarfmaster/rss_feeds
- Owner: dwarfmaster
- Created: 2015-08-29T14:42:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-30T16:48:28.000Z (almost 11 years ago)
- Last Synced: 2025-02-07T02:48:15.720Z (over 1 year ago)
- Language: Ruby
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Description
This software aims to create rss feeds from serialised website content. By
serialized content, we mean content with a first one, and every content has a
next one, except for the last one, obviously. We give the software the url of
the first one and a set of scripts, and every time run it creates an rss feed
with the 10 last contents.
## How to use
### Content list
The script will look for the content list at `$CDG_CONFIG_HOME/rss_feeds` or,
in a second time, at `$HOME/.rss_feeds`. The file must contain a list of items,
one per line, of the form :
`platform feed_name url`
`platform` is the platform name (see next paragraph), `feed_name` is the name
of the file the feed will be written to (a `.xml` will be added). Finally,
`url` is the url to the first content.
### Platforms
A platform is a directory with two scripts inside. The platforms are looked in
the `rss_platforms` directories of `$XDG_DATA_DIRS` or, if not set,
`/usr/local/share:/use/share`. All directories will be scanned, with platforms
added on the way. If a platform is present in two directories, the first one
has priority (thus the order of directories in `$XDG_DATA_DIRS` matters).
The two scripts it must contain are `desc` and `next`. `desc` will be executed
with the first url as its argument. Its first line output will be interpreted
as the title of the feed, and the following lines as the description. `next`
will be executed with the url of a content as only argument. The first line of
its output must be the url of the next content, or be empty if its the last.
The second line must contain the title of the actual content. The following
lines will be interpreted as the description of the actual content.