rssparser.lisp

Check-in [1b6f35c75a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fixed README
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: 1b6f35c75ab74ef085d59dc2a3608f4fb48f7ec09d2ea37917929354fc3f9fe8
User & Date: Cthulhux 2020-04-22 07:55:46
Context
2020-04-22
07:55
Fixed README Leaf check-in: 1b6f35c75a user: Cthulhux tags: trunk
2019-11-17
00:42
Transferred from Bitbucket check-in: f06c0d41c4 user: Cthulhux tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to README.md.

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
...
102
103
104
105
106
107
108
109
110
111
## Screenshot

![Screenshot](http://i.imgur.com/fzkvW9H.png)

## Syntax

* *chmod +x rssparser.lisp*, then:
  * ./rssparser.lisp add *<Title> <URL> <EntrySelector> <TitleSelector> [<ContentSelector>]*
  * ./rssparser.lisp delete *<ID>*
  * ./rssparser.lisp list
  * ./rssparser.lisp export *<ID>*

***Run a simple web interface on port 5000:***

* ./rssparser.lisp webserver

***Cronjob or manual feed creation command:***

* ./rssparser.lisp parse

Supported *selectors* are all valid [CSS selectors](http://www.w3schools.com/cssref/css_selectors.asp). If you don't specify a `ContentSelector` when adding a new feed, `rssparser.lisp` will use an empty item body.

### Example

If you want to subscribe to the KiTTY website, you can either use the web interface or perform the following commands:

................................................................................
## Configuration

You can set a couple of parameters in the `config.lisp` file:

* `+database-file+`: The SQLite database file. (Default: `feeds.db`.) Note that this file *needs* to be accessible for the RSS parser to work!
* `+feed-folder+`: The folder where the feed files should be created. (Default: `feeds/`.) The script *needs* to be able to create files there; it checks its permissions automatically and informs you if it needs some help.
* `+max-items-per-feed+`: The maximum number of items per feed. (Default: `50`.)
* `+feed-cleanup+`: If set to `t` (which is the default value), the `entries` table will automatically be purged from old entries (only *2 * `+max-items-per-feed+`* are kept). Set this to `nil` if you want to bloat your database.
* `+remove-dead-feeds+`: If set to `t`, a website which is not reachable anymore will automatically be removed from your feed list. The parser will inform you of that so if you run `rssparser.lisp` as a cronjob, you'll see what happened in your logfiles.
* `+webserver-port+`: The port to run the webserver on when `rssparser.lisp webserver` is executed. It should be available through your firewall. (Default: `5000`.)







|
|
|
|



|



|







 







|


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
...
102
103
104
105
106
107
108
109
110
111
## Screenshot

![Screenshot](http://i.imgur.com/fzkvW9H.png)

## Syntax

* *chmod +x rssparser.lisp*, then:
  * `./rssparser.lisp add *Title* *URL* *EntrySelector* *TitleSelector* [*ContentSelector*]`
  * `./rssparser.lisp delete *ID*`
  * `./rssparser.lisp list`
  * `./rssparser.lisp export *ID*`

***Run a simple web interface on port 5000:***

* `./rssparser.lisp webserver`

***Cronjob or manual feed creation command:***

* `./rssparser.lisp parse`

Supported *selectors* are all valid [CSS selectors](http://www.w3schools.com/cssref/css_selectors.asp). If you don't specify a `ContentSelector` when adding a new feed, `rssparser.lisp` will use an empty item body.

### Example

If you want to subscribe to the KiTTY website, you can either use the web interface or perform the following commands:

................................................................................
## Configuration

You can set a couple of parameters in the `config.lisp` file:

* `+database-file+`: The SQLite database file. (Default: `feeds.db`.) Note that this file *needs* to be accessible for the RSS parser to work!
* `+feed-folder+`: The folder where the feed files should be created. (Default: `feeds/`.) The script *needs* to be able to create files there; it checks its permissions automatically and informs you if it needs some help.
* `+max-items-per-feed+`: The maximum number of items per feed. (Default: `50`.)
* `+feed-cleanup+`: If set to `t` (which is the default value), the `entries` table will automatically be purged from old entries (only 2 * `+max-items-per-feed+` are kept). Set this to `nil` if you want to bloat your database.
* `+remove-dead-feeds+`: If set to `t`, a website which is not reachable anymore will automatically be removed from your feed list. The parser will inform you of that so if you run `rssparser.lisp` as a cronjob, you'll see what happened in your logfiles.
* `+webserver-port+`: The port to run the webserver on when `rssparser.lisp webserver` is executed. It should be available through your firewall. (Default: `5000`.)