Last active
December 7, 2018 03:06
-
-
Save baobao/6eb19a075d825cd99685fd907ba3119d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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