Skip to content

[POD] Parsing as hiccup or hickory fails  #78

@i-blis

Description

@i-blis

I have had no success whatsoever in using bootleg as a pod with babashka (v1.3.190).

(require '[babashka.pods :as pods])
(pods/load-pod 'retrogradeorbit/bootleg "0.1.9")
(require '[pod.retrogradeorbit.bootleg.utils :as bootleg])

(-> "https://example.com" slurp (bootleg/html->hickory))
; => "\n"

Parsing fails with all descent HTML file I tried. Same with html->hiccup (and for sure convert-to).

Where as the following code run with JVM Clojure, works without a hitch.

(require '[hickory.core :as h])
(-> "https://example.com" slurp h/parse h/as-hickory)
;=> {:type :document, :content [{:type :document-type, :attrs {:name "html", ...

Any hint as to what's going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions