Data Scrapping Using Selenium

Run Settings
LanguagePython
Language Version
Run Command
from selenium import webdriver from selenium.webdriver.common.by import By driver=webdriver.Chrome(executable_path="chromedriver") driver.get('https://quotes.toscrape.com/') for div in driver.find_elements(By.CSS_SELECTOR,"div.quote"): # print(div) # print(div.find_element(By.CSS_SELECTOR,'span.text').text) print(div.find_element(By.CSS_SELECTOR,'small.author').text) driver.find_element(By.CSS_SELECTOR,'li.next a').click() for div in driver.find_elements(By.CSS_SELECTOR,"div.quote"): # print(div) # print(div.find_element(By.CSS_SELECTOR,'span.text').text) print(div.find_element(By.CSS_SELECTOR,'small.author').text)
Editor Settings
Theme
Key bindings
Full width
Lines