-
Notifications
You must be signed in to change notification settings - Fork 39
Can Zendriver Work in Headless Mode with Cloudflare? #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I use zendriver on many docker hosts to scrape a lot of pages from a website with cloudflare protection, so yes, it should stay undetected in headless. |
Sorry my question is very basic. Does the docker still need chrome installed even though it is headless? |
On Wednesday, January 15th, 2025 at 8:22 AM, afkarxyz ***@***.***> wrote:
> I use zendriver on many docker hosts to scrape a lot of pages from a website with cloudflare protection, so yes, it should stay undetected in headless.
Sorry my question is very basic. Does the docker still need chrome installed even though it is headless?
I don't know what the concept of docker is, is it like a virtual machine?
—
Reply to this email directly, [view it on GitHub](#35 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AKE46J6EBVSGLMXMTA5JRQ32KYEC3AVCNFSM6AAAAABVADFF6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJRHAYTOMJVGQ).
You are receiving this because you commented.Message ID: ***@***.***>
Headless just means Chrome without a GUI - so no fancy libraries like X11 or Wayland have to be installed - just Chrome itself along with fewer dependencies. You'd use zendriver to control a headless chrome in any case.
Docker is basically a VM hypervisor except the 'VMs' (actually containers) use much less RAM, CPU, disk etc. than a virtual machine would use.
|
Could you share the Dockerfile used to run zendriver in docker in headless mode? |
I have an example repository here There is a lot of added complexity in the Docker image which is required in order to run Chrome in headful mode, though I find it quite helpful since it allows you to VNC into the container and actually interact with the running browser. If you only want to run in headless mode, the image could likely be substantially simplified. I'd be happy to accept a PR in that repo to add a Dockerfile for a simplified headless image if anyone is interested 🙂 |
An image you could (also) use for AWS lambda would be great, e.g. with a default config that just does javascript rendering and returns the page content, the resulting URL (after possible redirects) and a http status code. |
This issue has been marked stale because it has been open for 30 days with no activity. If there is no activity within 7 days, it will be automatically closed. |
This issue was automatically closed because it has been inactive for 7 days since being marked as stale. |
Uh oh!
There was an error while loading. Please reload this page.
Is it possible to run Zendriver in headless mode for websites with Cloudflare? I've tried headless, but it failed. If I run it without headless, it works fine. Please help me fix my code if headless mode is indeed possible. Thank you.
The text was updated successfully, but these errors were encountered: