Search on blog:

Python: How to scrape (2) with selenium

It is example code to scrape it:

#!/usr/bin/env python3

# date: 2020.03.30

import selenium.webdriver

url = ''

driver = selenium.webdriver.Firefox()

for x in range(10):
    deal = driver.find_element_by_id('100_dealView_' + str(x))

    image = deal.find_element_by_id('dealImage')
    print('href:', image.get_attribute('href'))

    title = deal.find_element_by_id('dealTitle')
    print('title:', title.text)

    price = deal.find_element_by_xpath('.//span[contains(@class, "dealPriceText")]')
    print('price:', price.text)

If you like it
Buy a Coffee