(defcrawler name type roots & opts)
Defines a crawler.
Defines a crawler.
(defparser parser-name args body & opts)
Defines a parser. An optional preprocessing function can be provided
using the :pre
keyword argument.
Defines a parser. An optional preprocessing function can be provided using the `:pre` keyword argument.
(defparser-simple parser-name args bindings & opts)
Defines a parser. The supplied bindings are available in the forms
at the :requests
and :items
keyword arguments. At least one of
these needs to be defined for the parser to be valid.
Defines a parser. The supplied bindings are available in the forms at the `:requests` and `:items` keyword arguments. At least one of these needs to be defined for the parser to be valid.
(parser-result requests items)
Returns a representation of parser results. This function is the way a parser should return its extracted values.
Returns a representation of parser results. This function is the way a parser should return its extracted values.
(pre-enlive resp)
(request url parser & {:keys [meta] :as args})
Returns a request map corresponding to the parser applied to a GET request to the url.
Returns a request map corresponding to the parser applied to a GET request to the url.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close