This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-17
Channels
- # announcements (11)
- # babashka (29)
- # beginners (45)
- # biff (3)
- # cider (5)
- # clj-kondo (55)
- # clojure-austin (2)
- # clojure-europe (6)
- # clojure-norway (24)
- # clojure-uk (1)
- # datalevin (28)
- # fulcro (8)
- # gratitude (1)
- # hyperfiddle (7)
- # keechma (1)
- # membrane (31)
- # other-languages (1)
- # polylith (22)
- # shadow-cljs (12)
Hi all! Any idea how I can use Hickory (https://github.com/clj-commons/hickory) with Babashka? I see a bb.edn but that seems to be a helper for running tests
i’m trying to parse an RSS XML feed which contains HTML data and want to parse that as well and get all a href’s for futher processing
the error I get is: 5: (:import [org.jsoup Jsoup] ^--- Unable to resolve classname: org.jsoup.Jsoup 6: [org.jsoup.nodes Attribute Attributes Comment DataNode Document 7: DocumentType Element TextNode XmlDeclaration] 8: [org.jsoup.parser Tag Parser])) which is understandable as it isn’t mentioned anywhere in the BB docs but maybe there is some easy thing I can do to add it?
Please use a thread for discussing 1 and the same topic, especially when posting code
hickory isn't compatible with babashka because it uses the Jsoup Java library which isn't part of bb
Yeah i figured 😞 any recommendations for my goal? I really like the bb speed and this will execute as multiple scripts on a Linux server
i'm trying to parse an RSS XML feed which contains HTML data and want to parse that as well and get all a href's for futher processing
hmm, the RSS feed outputs an encoded:content that is a partial HTML, don’t know if it’s XHTML
perhaps you can try https://github.com/babashka/pod-registry/blob/master/examples/bootleg.clj for parsing the HTML
Is there any tutorial for building a Babashka pod based upon a Clojure script, with the goal of making libraries require
d by it available to a Babashka script?
The only simple example I saw in https://github.com/babashka/pods/tree/master/examples uses a Python script, rather than a Clojure script. I love Python, however it does not directly help me require
Clojure libraries and make them available for use in a Babashka script.
Any Clojure example in this repo can serve as an example, together with the pods documentation: https://github.com/babashka/pod-registry
Which of those Clojure examples in the repo is sufficiently simple to be good for a tutorial?
it's less than 100 lines: https://github.com/clj-kondo/clj-kondo/blob/master/src/pod/borkdude/clj_kondo.clj
I created a library that can help make pods called https://github.com/justone/bb-pod-racer. I use it in the two pods linked from the readme.
@U0510902N, what resources did you use to master the art of building Babashka pods?
Answering myself, I found that the README file in https://github.com/babashka/pods is a good resource.
Yes, that readme is a great resource. I ended up reading other pod source to see how things were implemented (for the protocol), and I studied babashka's (and other's) build tooling to learn how to Graal-compile into binaries.
@U04V15CAJ @U0510902N Given that I want to create a Babashka pod (which exposes the functions and variables defined in a Clojure script): Can you please provide me with pointers to information about setting up the build environment for this? What I did so far was to search among Leiningen templates (in https://clj-templates.com/ ) and find that there is nothing for starting a Babashka pod project or for building stuff for GraalVM.