Live data from Hacker News

Show HN: Chromiumoxid – An Async Headless Chrome API in Rust

github.com

1–10 of 20 posts

Re: Show HN: Chromiumoxid – An Async Headless Chrome API in Rust

#2
This project looks great! In a similar vein, I've been using Fantoccini[0] for web browser automation task to great success! It uses the webdriver protocol under the hoods, which means it works with Chrome, Firefox, Edge (both the old and new one) and Safari.

Chromiumoxide looks like a great alternative when there is a need for deep introspection. Its API appears to be extremely complete, on the protocol level you can get access to things like the state of the webaudio engine or setup DOM breakpoints, things that are not possible with webdriver!

EDIT: forgot the link ^^'. Thx izietto.

[0] https://github.com/jonhoo/fantoccini

Re: Show HN: Chromiumoxid – An Async Headless Chrome API in Rust

#6
post #2

This project looks great! In a similar vein, I've been using Fantoccini[0] for web browser automation task to great success! It uses the webdriver protocol under the hoods, which means it works with Chrome, Firefox, Edge (both the old and new one) and Safari. Chromiumoxide looks like a great alternative when there is a need for deep introspection. Its API appears to be extremely complete, on the protocol level you ca…

You put a [0] but you forgot the link: https://github.com/jonhoo/fantoccini

Re: Show HN: Chromiumoxid – An Async Headless Chrome API in Rust

#7
post #3

So can this API handle js injection, http requests and behave like a web driver (selenium) ?

It only supports the chrome devtools protocol[0]. chromiumoxide is therefor more like a (limited) puppeteer rust port. Support for javascript page injection is currently being worked on

[0] https://chromedevtools.github.io/devtools-protocol/

Re: Show HN: Chromiumoxid – An Async Headless Chrome API in Rust

#8
post #4

Can I run it with Tokio?

It uses async-tungstenite [0] for the websocket part. At the moment configured only with async-std-runtime but since async-tungstenite also supports tokio, the option to use tokio instead of async-std will be added as well.

[0] https://github.com/sdroege/async-tungstenite

Re: Show HN: Chromiumoxid – An Async Headless Chrome API in Rust

#10
post #3

So can this API handle js injection, http requests and behave like a web driver (selenium) ?

Out of curiosity how much interest is there in a JS injection utility (written in JS) that walks the DOM, executes events, reports pass/fail/error, has no dependencies, and does nothing else?
Post reply on HN