Liking cljdoc? Tell your friends :D

feedparser-clj.core


->categoryclj

(->category name taxonomyURI)

Positional factory function for class feedparser_clj.core.category.

Positional factory function for class feedparser_clj.core.category.
sourceraw docstring

->contentclj

(->content type value)

Positional factory function for class feedparser_clj.core.content.

Positional factory function for class feedparser_clj.core.content.
sourceraw docstring

->descriptionclj

(->description value type)

Positional factory function for class feedparser_clj.core.description.

Positional factory function for class feedparser_clj.core.description.
sourceraw docstring

->enclosureclj

(->enclosure length type uri)

Positional factory function for class feedparser_clj.core.enclosure.

Positional factory function for class feedparser_clj.core.enclosure.
sourceraw docstring

->entryclj

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

->feedclj

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

->imageclj

(->image description link title url)

Positional factory function for class feedparser_clj.core.image.

Positional factory function for class feedparser_clj.core.image.
sourceraw docstring

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

->media-categoryclj

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

->media-dataclj

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

->media-imageclj

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

->media-videoclj

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

->personclj

(->person email name uri)

Positional factory function for class feedparser_clj.core.person.

Positional factory function for class feedparser_clj.core.person.
sourceraw docstring

->thumbnailclj

(->thumbnail url width height)

Positional factory function for class feedparser_clj.core.thumbnail.

Positional factory function for class feedparser_clj.core.thumbnail.
sourceraw docstring

gen-feed-inputclj

(gen-feed-input)
source

gen-syndfeedinputclj

(gen-syndfeedinput)
source

make-categoryclj

(make-category c)

Create category struct from SyndCategory

Create category struct from SyndCategory
sourceraw docstring

make-contentclj

(make-content c)

Create content struct from SyndContent

Create content struct from SyndContent
sourceraw docstring

make-descriptionclj

(make-description metadata)

Create description struct from com.rometools.modules.mediarss.types.Metadata

Create description struct from com.rometools.modules.mediarss.types.Metadata
sourceraw docstring

make-enclosureclj

(make-enclosure e)

Create enclosure struct from SyndEnclosure

Create enclosure struct from SyndEnclosure
sourceraw docstring

make-entryclj

(make-entry e)

Create feed entry struct from SyndEntry

Create feed entry struct from SyndEntry
sourceraw docstring

make-feedclj

(make-feed f)

Create a feed struct from a SyndFeed

Create a feed struct from a SyndFeed
sourceraw docstring

make-imageclj

(make-image i)

Create image struct from SyndImage

Create image struct from SyndImage
sourceraw docstring

(make-link l)

Create link struct from SyndLink

Create link struct from SyndLink
sourceraw docstring

make-media-categoryclj

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

make-media-dataclj

(make-media-data module)

Create media-data struct from com.rometools.modules.mediarss.MediaEntryModule

Create media-data struct from com.rometools.modules.mediarss.MediaEntryModule
sourceraw docstring

make-media-imageclj

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

make-media-videoclj

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

make-personclj

(make-person sp)

Create a person struct from SyndPerson

Create a person struct from SyndPerson
sourceraw docstring

make-thumbnailclj

(make-thumbnail t)

Create thumbnail struct from com.rometools.modules.mediarss.types.Thumbnail

Create thumbnail struct from com.rometools.modules.mediarss.types.Thumbnail
sourceraw docstring

map->categoryclj

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

map->contentclj

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

map->descriptionclj

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

map->enclosureclj

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

map->entryclj

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

map->feedclj

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

map->imageclj

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

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

map->media-categoryclj

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

map->media-dataclj

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

map->media-imageclj

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

map->media-videoclj

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

map->personclj

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

map->thumbnailclj

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

parse-feedclj

(parse-feed feedsource & {:keys [extra] :as options})

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+' {}])}}.

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+' {}])}}`.
sourceraw docstring

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

× close