from bs4 import BeautifulSoup
import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
url = "https://www.deadstock.de/releases/"
PATH = "C:\Program Files (x86)\chromedriver.exe"
chrome_options = Options()
chrome_options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(PATH, options = chrome_options)
driver.get(url)
content = driver.page_source.encode('utf-8').strip()
soup = BeautifulSoup(content,"html.parser")
elements = driver.find_element_by_xpath("""//a[@class='_brlbs-btn _brlbs-btn-accept-all _brlbs-cursor']""")
elements.click()
elements = driver.find_elements_by_xpath("""//div[@class='release-cols']""")
elements[4].click()
time.sleep(2)
elements = driver.find_element_by_xpath("""/html/body/div[3]/main/article/div/div[2]/aside/section[2]/ul/li[1]/div/a""")
elements.click()
time.sleep(5)
# elements = driver.find_element_by_link_text("Verkaufen")
# elements = driver.find_element_by_class_name('chakra-link css-85ri46')
# elements = driver.find_element_by_xpath("""//div[class='chakra-stack css-12vwdz3']""")
elements = driver.find_element_by_id("chakra-button css-14gn5pw")
elements.click()
Hey I am trying to scraep prices off of stockx from upcoming sneakers. First the porgramm finds the sneaker and then presses on the stockx link. From Stockx i would like to press on the red "SELL" button. I have tried so many different ways but I cannot seem to find a way to locate or press the link. Any help much appreciated!!!