Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junker/rssgen
RSS 2.0 generator for Common Lisp
https://github.com/junker/rssgen
common-lisp rss rss-generator
Last synced: 7 days ago
JSON representation
RSS 2.0 generator for Common Lisp
- Host: GitHub
- URL: https://github.com/junker/rssgen
- Owner: Junker
- License: mit
- Created: 2023-11-12T16:52:31.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-18T05:12:00.000Z (9 months ago)
- Last Synced: 2024-05-09T08:20:29.477Z (6 months ago)
- Topics: common-lisp, rss, rss-generator
- Language: Common Lisp
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RSSGen
RSS 2.0 generator for Common Lisp.
## Installation
This system can be installed from [UltraLisp](https://ultralisp.org/) like this:
```lisp
(ql-dist:install-dist "http://dist.ultralisp.org/"
:prompt nil)
(ql:quickload "rssgen")
```## Usage
```common-lisp
(let ((items (list
(rss-item "Title 1"
"https://example.org/blog/article-1"
"Desription of article 1")
(rss-item "Title 2"
"https://example.org/blog/article-2"
"Desription of article 2"
;;optional
:author "[email protected] (John Doe)"
:category (rss-item-category "Category 1")
:comments "https://example.org/blog/article-2#comments"
:enclosure (rss-item-enclosure "https://example.org/example.jpg"
1024
"image/jpeg")
:guid (rss-item-guid "a2331318-82de-4ef2-9d08-00fbda09e015")
:pub-date "Sun, 19 May 2002 15:21:36 GMT"
:source (rss-item-source "https://example.org/rss-2.xml" "Second channel"))
(rss-item "Title 3"
"https://example.org/blog/article-3"
"Desription of article 3"
:category (list (rss-item-category "Category 1" :domain "https://example.org/blog")
(rss-item-category "Category 2"))
:pub-date (local-time:now)
:guid (rss-item-guid "https://example.org/a2331318" :perma t)))))(rssgen:rss "Site title" "https://example.org" "Site description"
:items items
;; optional
:language "en-us"
:copyright "Copyright 2022, John Doe"
:managing-editor "[email protected] (John Doe)"
:web-master "[email protected] (Jane Doe)"
:pub-date "Sun, 19 May 2002 15:21:36 GMT"
:last-build-date (local-time:now)
:category (rss-category "News")
:generator "rssgen"
:docs "https://example.org/rss-specification"
:ttl 60
:rating "The PICS rating for the channel."
:image (rss-image "https://example.org/logo.jpg"
"Logo title"
"https://example.org"
;; optional
:width 100
:height 100
:description "Logo description")
:skip-hours (list 21 22 23)
:skip-days (list "Saturday" "Sunday")))
```## Documentation
- [RSS 2.0 Specification](https://www.rssboard.org/rss-specification)