Skip to content

Instantly share code, notes, and snippets.

View zldoty's full-sized avatar

Zach Doty zldoty

View GitHub Profile
@zldoty
zldoty / chrome_headless_screenshot.py
Created October 7, 2019 20:04 — forked from rverton/chrome_headless_screenshot.py
Make a screenshot with a headless google chrome in python
# Install chromedriver from https://sites.google.com/a/chromium.org/chromedriver/downloads
import os
from optparse import OptionParser
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
CHROME_PATH = '/usr/bin/google-chrome'