크롤링/셀레늄
PhantomJS
Aiden_
2021. 9. 22. 20:44
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)