Headless Chrome

Matan Kushner

What is a

"headless browser"?

  • A web browser without a graphical interface
  • Automated control of a web application
  • Executed via command-line

What are some applications?

  • Test automation
  • Web scraping
  • Taking screenshots

Doesn't this

already exist?

Sure but...

  • Not stable
  • Flaky cross-platform support
  • Emulates browser support
  • Eats up all of your memory
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"

chrome --headless --disable-gpu --remote-debugging-port=9222 https://www.shutterstock.com
Made with Slides.com