from selenium import webdriver from selenium.webdriver.chrome.options import Options DRIVER_PATH=r"D:\Chromedriver\chromedriver_win32\chromedriver.exe" URL = "https://www.lazada.com.my/-i356197126-s852618990.html?spm=a2o4k.my_wishlist.price_observing.6.3f0b49fba5ZlSI&urlFlag=true&mp=3" chrome_options = Options() chrome_options.add_argument("--headless") driver = webdriver.Chrome(DRIVER_PATH, options = chrome_options) driver.get(URL) price_elem = driver.find_element_by_class_name("pdp-price") print(price_elem.text)