from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time

phantomjs download : https://phantomjs.org/download.html

phantomjs_path = '/Users/aiden/Dropbox/Mac/Desktop/phantomjs'
driver = webdriver.PhantomJS(phantomjs_path)

# 크롤링할 사이트 호출
driver.get("http://www.python.org")

print(driver.title)
print(driver.current_url)

 

+ Recent posts