(->category name taxonomyURI)
Positional factory function for class feedparser_clj.core.category.
Positional factory function for class feedparser_clj.core.category.
(->content type value)
Positional factory function for class feedparser_clj.core.content.
Positional factory function for class feedparser_clj.core.content.
(->description value type)
Positional factory function for class feedparser_clj.core.description.
Positional factory function for class feedparser_clj.core.description.
(->enclosure length type uri)
Positional factory function for class feedparser_clj.core.enclosure.
Positional factory function for class feedparser_clj.core.enclosure.
(->entry authors
categories
contents
media-rss-data
contributors
description
enclosures
link
published-date
title
updated-date
uri)
Positional factory function for class feedparser_clj.core.entry.
Positional factory function for class feedparser_clj.core.entry.
(->feed authors
categories
contributors
copyright
description
encoding
entries
feed-type
image
language
link
entry-links
published-date
title
uri)
Positional factory function for class feedparser_clj.core.feed.
Positional factory function for class feedparser_clj.core.feed.
(->image description link title url)
Positional factory function for class feedparser_clj.core.image.
Positional factory function for class feedparser_clj.core.image.
(->link href hreflang length rel title type)
Positional factory function for class feedparser_clj.core.link.
Positional factory function for class feedparser_clj.core.link.
(->media-category value scheme label)
Positional factory function for class feedparser_clj.core.media-category.
Positional factory function for class feedparser_clj.core.media-category.
(->media-data thumbnails
keywords
credits
copyright
texts
description
categories
images
videos)
Positional factory function for class feedparser_clj.core.media-data.
Positional factory function for class feedparser_clj.core.media-data.
(->media-image url type width height filesize)
Positional factory function for class feedparser_clj.core.media-image.
Positional factory function for class feedparser_clj.core.media-image.
(->media-video url type width height bitrate duration filesize)
Positional factory function for class feedparser_clj.core.media-video.
Positional factory function for class feedparser_clj.core.media-video.
(->person email name uri)
Positional factory function for class feedparser_clj.core.person.
Positional factory function for class feedparser_clj.core.person.
(->thumbnail url width height)
Positional factory function for class feedparser_clj.core.thumbnail.
Positional factory function for class feedparser_clj.core.thumbnail.
(make-category c)
Create category struct from SyndCategory
Create category struct from SyndCategory
(make-content c)
Create content struct from SyndContent
Create content struct from SyndContent
(make-description metadata)
Create description struct from com.rometools.modules.mediarss.types.Metadata
Create description struct from com.rometools.modules.mediarss.types.Metadata
(make-enclosure e)
Create enclosure struct from SyndEnclosure
Create enclosure struct from SyndEnclosure
(make-entry e)
Create feed entry struct from SyndEntry
Create feed entry struct from SyndEntry
(make-feed f)
Create a feed struct from a SyndFeed
Create a feed struct from a SyndFeed
(make-image i)
Create image struct from SyndImage
Create image struct from SyndImage
(make-link l)
Create link struct from SyndLink
Create link struct from SyndLink
(make-media-category category)
Create media-category struct from com.rometools.modules.mediarss.types.Category
Create media-category struct from com.rometools.modules.mediarss.types.Category
(make-media-data module)
Create media-data struct from com.rometools.modules.mediarss.MediaEntryModule
Create media-data struct from com.rometools.modules.mediarss.MediaEntryModule
(make-media-image m-content)
Create media-image struct from com.rometools.modules.mediarss.types.MediaContent if it is of medium 'image'; returns nil otherwise
Create media-image struct from com.rometools.modules.mediarss.types.MediaContent if it is of medium 'image'; returns nil otherwise
(make-media-video m-content)
Create media-video struct from com.rometools.modules.mediarss.types.MediaContent if it is of medium 'video'; returns nil otherwise
Create media-video struct from com.rometools.modules.mediarss.types.MediaContent if it is of medium 'video'; returns nil otherwise
(make-person sp)
Create a person struct from SyndPerson
Create a person struct from SyndPerson
(make-thumbnail t)
Create thumbnail struct from com.rometools.modules.mediarss.types.Thumbnail
Create thumbnail struct from com.rometools.modules.mediarss.types.Thumbnail
(map->category m__7888__auto__)
Factory function for class feedparser_clj.core.category, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.category, taking a map of keywords to field values.
(map->content m__7888__auto__)
Factory function for class feedparser_clj.core.content, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.content, taking a map of keywords to field values.
(map->description m__7888__auto__)
Factory function for class feedparser_clj.core.description, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.description, taking a map of keywords to field values.
(map->enclosure m__7888__auto__)
Factory function for class feedparser_clj.core.enclosure, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.enclosure, taking a map of keywords to field values.
(map->entry m__7888__auto__)
Factory function for class feedparser_clj.core.entry, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.entry, taking a map of keywords to field values.
(map->feed m__7888__auto__)
Factory function for class feedparser_clj.core.feed, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.feed, taking a map of keywords to field values.
(map->image m__7888__auto__)
Factory function for class feedparser_clj.core.image, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.image, taking a map of keywords to field values.
(map->link m__7888__auto__)
Factory function for class feedparser_clj.core.link, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.link, taking a map of keywords to field values.
(map->media-category m__7888__auto__)
Factory function for class feedparser_clj.core.media-category, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.media-category, taking a map of keywords to field values.
(map->media-data m__7888__auto__)
Factory function for class feedparser_clj.core.media-data, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.media-data, taking a map of keywords to field values.
(map->media-image m__7888__auto__)
Factory function for class feedparser_clj.core.media-image, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.media-image, taking a map of keywords to field values.
(map->media-video m__7888__auto__)
Factory function for class feedparser_clj.core.media-video, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.media-video, taking a map of keywords to field values.
(map->person m__7888__auto__)
Factory function for class feedparser_clj.core.person, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.person, taking a map of keywords to field values.
(map->thumbnail m__7888__auto__)
Factory function for class feedparser_clj.core.thumbnail, taking a map of keywords to field values.
Factory function for class feedparser_clj.core.thumbnail, taking a map of keywords to field values.
(parse-feed feedsource & {:keys [extra] :as options})
Get and parse a feed from a URL string, XML File, InputStream or an HttpURLConnection.
:user-agent for setting the user agent header (for URL feedsource
only)
:username and :password for setting a Basic authentication header (for URL feedsource
only)
Provide an :extra
option in order to extract elements from the feed that are not
supported by the RSS/Atom xmlns. This must be a map with the keys being namespace prefixes
(either a string or keyword) and the values being a collection of maps in the format:
{:elem-name :name :transform function-name}
where the elem-name value is the element name without their namespace (either
strings or keywords) and the transform value is a function (defaulted to identity)
applied to the list of values found with the specified name, to produce the final
output. All matching elements for each namespace will be merged into a single map
and then added to each entry's hash-map under the :extra
key.
All element values with a specific namespace:name, are put into one list. Each element value is a ordered pair (2-tuple) like [value attributes], where value is the value and attributes is a map of attribute names (as keywords) to attribute values (as strings).
This list of element values is then fed to the transform function to produce the final output.
The extra data keys will be dasherized (underscores replaced with hyphens) and cast to keywords. Also note that at this time this only supports elements that are direct descendants of the entry's root node.
Example: the Google Trends feed uses a xmlns called 'ht' for some of its elements.
We want to extract the ht:picture
and ht:approx_source
elements. To do this the
:extra
map would be set to:
{:ht [{:key :picture :transform first} {:key :approx_source}]}
And one of the returned entries may look like this:
{:title 'Mother Teresa' :extra {:picture ['http://example.com' {:language 'English'}] :approx-source (['1,000,000+' {}])}}
.
Get and parse a feed from a URL string, XML File, InputStream or an HttpURLConnection. ## Options * :user-agent for setting the user agent header (for URL `feedsource` only) * :username and :password for setting a Basic authentication header (for URL `feedsource` only) * Provide an `:extra` option in order to extract elements from the feed that are not supported by the RSS/Atom xmlns. This must be a map with the keys being namespace prefixes (either a string or keyword) and the values being a collection of maps in the format: {:elem-name :name :transform function-name} where the elem-name value is the element name without their namespace (either strings or keywords) and the transform value is a function (defaulted to identity) applied to the list of values found with the specified name, to produce the final output. All matching elements for each namespace will be merged into a single map and then added to each entry's hash-map under the `:extra` key. All element values with a specific namespace:name, are put into one list. Each element value is a ordered pair (2-tuple) like [value attributes], where value is the value and attributes is a map of attribute names (as keywords) to attribute values (as strings). This list of element values is then fed to the transform function to produce the final output. The extra data keys will be dasherized (underscores replaced with hyphens) and cast to keywords. Also note that at this time this only supports elements that are direct descendants of the entry's root node. Example: the Google Trends feed uses a xmlns called 'ht' for some of its elements. We want to extract the `ht:picture` and `ht:approx_source` elements. To do this the `:extra` map would be set to: `{:ht [{:key :picture :transform first} {:key :approx_source}]}` And one of the returned entries may look like this: `{:title 'Mother Teresa' :extra {:picture ['http://example.com' {:language 'English'}] :approx-source (['1,000,000+' {}])}}`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close