RSS 2.0 feed parsing and validation. Supports RSS 2.0 specification with validation for:
RSS 2.0 feed parsing and validation. Supports RSS 2.0 specification with validation for: - Required channel elements (title, link, description) - Optional channel elements (language, pubDate, lastBuildDate, generator) - Item elements (title OR description required, link, pubDate, guid, enclosure, category)
(parse-item item-el)Parse an RSS item element into a Clojure map.
Parse an RSS item element into a Clojure map.
(parse-rfc822 s)Parse an RFC 822 datetime string. Returns java.util.Date or nil if invalid.
Parse an RFC 822 datetime string. Returns java.util.Date or nil if invalid.
(parse-rss-feed source)Parse an RSS 2.0 feed from XML string or input stream. Returns a map with :title, :link, :description, :items, etc.
Parse an RSS 2.0 feed from XML string or input stream. Returns a map with :title, :link, :description, :items, etc.
RFC 822 date formats commonly used in RSS feeds.
RFC 822 date formats commonly used in RSS feeds.
(validate-channel-description feed)Channel MUST have a description element.
Channel MUST have a description element.
(validate-channel-last-build-date feed)Channel lastBuildDate must be valid RFC 822 format if present.
Channel lastBuildDate must be valid RFC 822 format if present.
(validate-channel-link feed)Channel MUST have a link element.
Channel MUST have a link element.
(validate-channel-pubdate feed)Channel pubDate must be valid RFC 822 format if present.
Channel pubDate must be valid RFC 822 format if present.
(validate-channel-title feed)Channel MUST have a title element.
Channel MUST have a title element.
(validate-guid-uniqueness feed)Check that all guids in the feed are unique.
Check that all guids in the feed are unique.
(validate-item item idx)Validate a single RSS item. Returns a sequence of errors/warnings.
Validate a single RSS item. Returns a sequence of errors/warnings.
(validate-item-content item idx)Item MUST have at least a title OR description element.
Item MUST have at least a title OR description element.
(validate-item-guid item idx)Item guid should be unique within the feed. Note: This validates format only; uniqueness is checked at feed level.
Item guid should be unique within the feed. Note: This validates format only; uniqueness is checked at feed level.
(validate-item-pubdate item idx)Item pubDate must be valid RFC 822 format if present.
Item pubDate must be valid RFC 822 format if present.
(validate-rss-feed feed)(validate-rss-feed feed {:keys [strict?] :or {strict? false}})Validate an RSS 2.0 feed. Returns {:valid? bool :errors [...] :warnings [...] :feed map}.
Arguments:
Options:
Validate an RSS 2.0 feed. Returns {:valid? bool :errors [...] :warnings [...] :feed map}.
Arguments:
- feed: Either a parsed feed map or XML string/input-stream
Options:
- :strict? - Treat warnings as errors (default false)(validate-rss-structure feed)Validate RSS feed structure. Returns {:errors [...] :warnings [...]}.
Validate RSS feed structure. Returns {:errors [...] :warnings [...]}.
(validate-rss-urls _feed)Validate URLs in RSS feed (link elements, enclosures). Returns {:errors [...] :warnings [...]}.
Validate URLs in RSS feed (link elements, enclosures).
Returns {:errors [...] :warnings [...]}.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |