(-fetch-local url)
Fetch url
contents to tmpfile
Fetch `url` contents to `tmpfile`
(-fetch-or-local url)
If the url is local (file:///...
) then return the url, if it is remote then fetch it and return the local path)
If the url is local (`file:///...`) then return the url, if it is remote then fetch it and return the local path)
(-get-body url)
Plain old http get with a friendly user agent
Plain old http get with a friendly user agent
(-get-host url)
Get the host portion of a URL
Get the host portion of a URL
(apply-if-item func loc)
If loc
is an item, func
will be applied to that loc and returned, otherwise loc
is returned
If `loc` is an item, `func` will be applied to that loc and returned, otherwise `loc` is returned
(apply-to-items feed func)
Takes body of an RSS feed feed
and applies func
to each item where func must return a zip location
Takes body of an RSS feed `feed` and applies `func` to each item where func must return a zip location
(create-empty-feed)
Generates an empty rss feed
Generates an empty rss feed
(define-atom-xmlns)
Define atomfeed
xmlns in current scope. Renamed from atom
so as to not cause confusion with the clojure mutable
Define `atomfeed` xmlns in current scope. Renamed from `atom` so as to not cause confusion with the clojure mutable
(define-content-xmlns)
Define content
xmlns in current scope
Define `content` xmlns in current scope
(fields-atom? fields)
Returns true if the list fields
contains any atom fields, else returns false. FIXME: this should probably just check for a single instance of the namespace
Returns true if the list `fields` contains any atom fields, else returns false. FIXME: this should probably just check for a single instance of the namespace
(for-each-item feed func)
Takes body of an RSS feed feed
and returns a list of the results of applying func
to each item
Takes body of an RSS feed `feed` and returns a list of the results of applying `func` to each item
(get-fields item)
Takes a feed item item
and extracts the top level fields from it
Takes a feed item `item` and extracts the top level fields from it
(get-fields-from-first-item feed)
Takes a feed feed
, finds the first item and extracts the top level fields from it
Takes a feed `feed`, finds the first item and extracts the top level fields from it
(get-value-from-item field item)
Extracts the content from field
inside item
Extracts the content from `field` inside `item`
(get-values-from-item fields item)
Extracts all of the values from item
that exist under the list of fields
Extracts all of the values from `item` that exist under the list of `fields`
(is-atom-entry? loc)
Returns true if loc
is an atom entry, else returns false
Returns true if `loc` is an atom entry, else returns false
(is-atom? feed)
Returns true if feed
is an atom feed, else returns false
Returns true if `feed` is an atom feed, else returns false
(is-item? loc)
Retrurns true if loc
is an rss-item-like entity (atom entry or rss item), else returns false
Retrurns true if `loc` is an rss-item-like entity (atom entry or rss item), else returns false
(is-rss-item? loc)
Returns true if loc
is an rss item, else returns false
Returns true if `loc` is an rss item, else returns false
(is-rss? feed)
Returns true if feed
is an rss feed, else returns false
Returns true if `feed` is an rss feed, else returns false
(parse-feed url)
Takes url
of a feed and returns it fetched and parsed as an xml object
Takes `url` of a feed and returns it fetched and parsed as an xml object
(zip-at-first-item feed)
Takes an rss feed
and returns a zip located at the first item
Takes an rss `feed` and returns a zip located at the first item
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close