Skip to content

Instantly share code, notes, and snippets.

@baobao
Last active Dec 7, 2018
Embed
What would you like to do?
from selenium import webdriver
import sys
url = sys.argv[1]
output = sys.argv[2]
driver = webdriver.PhantomJS()
driver.get(url)
driver.save_screenshot(output+".png")
driver.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment