Fork me on GitHub
#babashka
<
2020-11-16
>
borkdude11:11:38

Made the first commit at: https://github.com/babashka/fs In time I hope this will be a useful lib to include in bb.

👍 12
😍 3
eigenhombre14:11:08

Greetings, Babashkers (do you/we have a better name for y'all/us), in JVM Clojure I would typically parse HTML with Hickory. What do you recommend for Babashka? Thanks in advance.

borkdude15:11:14

@eigenhombre Yo, bb hacker! In the pod department that are some things you could use: https://github.com/borkdude/babashka/blob/master/doc/libraries.md#pods Bootleg has lots of libraries to parse HTML into a Clojure-specific format. There's also a Jsoup-based pod.

eigenhombre15:11:53

Cool, I shall have to try me out some Pods.

eigenhombre15:11:22

Thank you very much and thanks for Babashka!

borkdude15:11:13

Thanks for the donation on Opencollective!

👍 3
eigenhombre15:11:54

Does one have to do anything other than

(require '[babashka.pods :as pods])

(pods/load-pod "bootleg")
? This throws clojure.lang.ExceptionInfo: Cannot run program "bootleg": error=2, No such file or directory for me.

borkdude15:11:29

You have to download the bootleg pod and place it on your path or load it using a local path

eigenhombre15:11:53

I assume you mean CLASSPATH? Or the Bash $PATH?

borkdude15:11:57

A pod is basically a CLI to which you shell out, but more efficient and better integrated. The bash PATH.

eigenhombre15:11:05

got it, thank you!

borkdude15:11:30

You can also load it with "./bootleg" if you have the binary in your local dir

Calum Boal15:11:07

Cheers, been using babashka recently, I love it, great work