I am to scrape dynamic website but the selenium will provide me these error 'chromedriver' executable needs to be in PATH
Can you solve these problem
from scrapy import Spider
from scrapy.http import Request
from scrapy.utils.project import get_project_settings
from selenium import webdriver
class AuthorSpider(Spider):
name = 'pushpa'
def start_requests(self):
self.driver = webdriver.Chrome(executable_path='C:/Program Files (x86)/chromedriver')
driver = webdriver.Chrome(driver_path, options=options)
driver.get('https://www.lazada.com.ph/shop-laptops/')
link_elements = driver.find_elements_by_xpath(
'//*[@data-qa-locator="product-item"]//a[text()]')
for link in link_elements:
yield{
'url':link
}