Liking cljdoc? Tell your friends :D

rss-utils.core


-fetch-localclj

(-fetch-local url)

Fetch url contents to tmpfile

Fetch `url` contents to `tmpfile`
sourceraw docstring

-fetch-or-localclj

(-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)
sourceraw docstring

-get-bodyclj

(-get-body url)

Plain old http get with a friendly user agent

Plain old http get with a friendly user agent
sourceraw docstring

-get-hostclj

(-get-host url)

Get the host portion of a URL

Get the host portion of a URL
sourceraw docstring

apply-if-itemclj

(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
sourceraw docstring

apply-to-itemsclj

(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
sourceraw docstring

create-empty-feedclj

(create-empty-feed)

Generates an empty rss feed

Generates an empty rss feed
sourceraw docstring

default-headersclj

source

define-atom-xmlnscljmacro

(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
sourceraw docstring

define-content-xmlnscljmacro

(define-content-xmlns)

Define content xmlns in current scope

Define `content` xmlns in current scope
sourceraw docstring

fields-atom?clj

(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
sourceraw docstring

for-each-itemclj

(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
sourceraw docstring

get-fieldsclj

(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
sourceraw docstring

get-fields-from-first-itemclj

(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
sourceraw docstring

get-value-from-itemclj

(get-value-from-item field item)

Extracts the content from field inside item

Extracts the content from `field` inside `item`
sourceraw docstring

get-values-from-itemclj

(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`
sourceraw docstring

is-atom-entry?clj

(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
sourceraw docstring

is-atom?clj

(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
sourceraw docstring

is-item?clj

(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
sourceraw docstring

is-rss-item?clj

(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
sourceraw docstring

is-rss?clj

(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
sourceraw docstring

original-tmpfileclj

(original-tmpfile url)

Get tempfile name

Get tempfile name
sourceraw docstring

parse-feedclj

(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
sourceraw docstring

user-agentclj

source

xmlns-atomfeed-hashclj

source

xmlns-atomfeed-urlclj

source

xmlns-content-hashclj

source

xmlns-content-urlclj

source

zip-at-first-itemclj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close