Add `headless` option to Chrome.start
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.)
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.
@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
@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.
I think I fixed the formatting issues.
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
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.
Sorry, I meant to get back to this earlier. I've pushed a commit to add an option to the CLI. Sorry about that!
No worries at all! I appreciate it.