brozzler icon indicating copy to clipboard operation
brozzler copied to clipboard

Add `headless` option to Chrome.start

Open TheTechRobo opened this issue 7 months ago • 5 comments

Previously, Chrome's headless mode was always turned on. This makes it optional when using Brozzler as a module. (If there's interest in a command-line option for this, I can add that too.)

TheTechRobo avatar Jun 16 '25 00:06 TheTechRobo

I'm curious, what's the benefit of having this as an option? Is there something this lets it capture that wouldn't be possible otherwise? I'd be interested in getting it documented somewhere if we add it.

mistydemeo avatar Jun 16 '25 18:06 mistydemeo

@TheTechRobo I wonder if you have experimented with the brozzle-page utility — maybe it serves your purpose? https://github.com/internetarchive/brozzler/blob/master/README.rst?plain=1#L35

galgeek avatar Jun 16 '25 18:06 galgeek

@mistydemeo It's useful for debugging. I also wouldn't be surprised if headless Chrome is easier to fingerprint, but I haven't looked into that.

@galgeek This project in particular requires hooking into brozzler to allow for some custom logic, which a CLI can't really emulate.

TheTechRobo avatar Jun 16 '25 21:06 TheTechRobo

I think I fixed the formatting issues.

TheTechRobo avatar Jun 16 '25 21:06 TheTechRobo

It would be good to be able to disable headless via brozzler's CLI.

There's an example of another CLI addition here: https://github.com/internetarchive/brozzler/pull/307/files

galgeek avatar Jun 26 '25 22:06 galgeek

Just wanted to check back in, are you up for adding a CLI flag for this? If not, I'm happy to merge and add that myself in a followup.

mistydemeo avatar Jul 28 '25 20:07 mistydemeo

Sorry, I meant to get back to this earlier. I've pushed a commit to add an option to the CLI. Sorry about that!

TheTechRobo avatar Jul 28 '25 21:07 TheTechRobo

No worries at all! I appreciate it.

mistydemeo avatar Jul 28 '25 21:07 mistydemeo