CICP/MasterThesis/__init__.py
2022-11-29 23:36:06 +01:00

12 lines
524 B
Python

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
if __name__ == '__main__':
driver = webdriver.Chrome()
driver.get("https://stockx.com/jordan-1-retro-black-royal-blue-2001")
button = driver.find_element_by_xpath('//*[@id="main-content"]/div/section[4]/div/div/div/div/div[1]/div[2]/button')
button.click()
elem = driver.find_element_by_xpath('//*[@id="chakra-modal--body-38"]/div/div/table/tbody/tr[100]/td[4]/p/p')
price = elem.text
print(price)
driver.close()