Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Calculator

0

78
Views
Chrome headless screenshot without cookie consent prompt

I would like to make a screenshot of a website with something like

google-chrome --headless --screenshot https://www.google.com

But most of the websites today have this popping cookie consent notifications so the screenshot looks something like this: google.com screenshot

Is there any way or command to disable this, like disabling javascript or something similar to get a propper picture of the website?

Found the command --blink-settings=scriptEnabled=false that disable javascript both for chromium and chrome. For some websites this helps, but if they heavily depend on javascript, there is not much that gets screenshoted.

7 months ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.