import sys
import io
from selenium import webdriver

sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')

driver = webdriver.PhantomJS('./phantomjs/bin/phantomjs')

driver.implicitly_wait(5)

driver.get('https://google.com')

driver.save_screenshot("F:/Website1.png")


driver.implicitly_wait(5)

driver.get('https://www.daum.net')

driver.save_screenshot("F:/Website2.png")
driver.quit()
