Reputation: 169
I am writing a code in python with a selector from scrapy.
selector = Selector(text=driver.page_source)
Is not returning the page's html.
Any idea why ?
Upvotes: 0
Views: 109
Reputation: 3801
Try this:
from selenium import webdriver
driver = webdriver.Chrome("C:/path/to/chromedriver.exe")
driver.get("http://google.com")
selector = driver.page_source
print(selector)
Upvotes: 1