etaoin

Adrien Blavier 2022-12-02T15:34:54.989579Z

Hi, I’ve been trying out this awesome webdriver implementation. Been testing it out in the REPL. Great so far. But when loading the following code snippet I always get the same error:

Adrien Blavier 2022-12-02T15:35:02.064729Z

Thanks in advance

borkdude 2022-12-02T15:39:19.947029Z

@adrien615 You can fix this by requiring: babashka.process.pprint

Adrien Blavier 2022-12-02T15:52:00.758059Z

Thanks, will have a go

Adrien Blavier 2022-12-02T16:16:49.868689Z

Yep, that did the trick thx

borkdude 2022-12-02T15:40:12.907609Z

@lee If etaoin is already requiring pprint somewhere, maybe etaoin could do this. babashka.process doesn't do this automatically since loading clojure.pprint isn't always desired

lread 2022-12-02T15:59:07.777669Z

Interesting @adrien615, thanks for sharing! @borkdude, thanks for the solution, seems harmless enough to do for etaoin to do this, yeah? I'll make an issue/fix.

👍 1
borkdude 2022-12-02T16:00:31.342229Z

yeah I think so

2022-12-02T16:44:38.482339Z

Not super related to etaoin specifically but I've been wondering about using a etaoin driven browser as my main browser so i can just have a repl handy and make commands to control it. I've noticed though some sites (google so far) detect that you're using a webdriver browser and block you or captcha you to death. Are there ways to avoid sites detecting this? Are there major security issues with doing this? Are there ways to mitigate them?

borkdude 2022-12-02T16:46:18.242159Z

probably mess with the user agent?

2022-12-02T16:46:41.286369Z

good call, should have tried that first

borkdude 2022-12-02T16:46:41.585239Z

huh, that doesn't make sense does it

borkdude 2022-12-02T16:47:04.185059Z

maybe it does ;)

2022-12-02T16:47:44.634159Z

haha I'll do some more experimenting soon and report back. Just been in the back of my mind for a bit

lread 2022-12-02T17:01:19.958469Z

Yeah maybe user-agent is useful here. Looking forward to learning from your explorations @jjttjj!

👍 1