Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

Is there a way to use https://developers.google.com/web/tools/puppeteer/ from Clojure?

Googling, there are lots of "puppet" related Clojure libraries, but none appear to be for web scraping with Chrome.

Is there a way to use https://developers.google.com/web/tools/puppeteer/ from Clojure?

1 Answer

+2 votes
by

Puppetter is a javascript library. You can use it with clojurescript, but not so easy with clojure.

There is a clojure library that controls chrome with the same CDP protocol as used by puppeteer: https://github.com/tatut/clj-chrome-devtools . Maybe worth a look.

Or if you have to use it from clojure/JVM, take a look at graaljs: https://github.com/graalvm/graaljs/blob/master/docs/user/RunOnJDK.md

But be careful: that may be a deep rabbit hole.

...