Here is the code i use
import os
import uuid
import time
from selenium.webdriver import *
from selenium.webdriver.common.by import By
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.firefox.service import Service
from selenium.webdriver.common.keys import Keys
#########################################################################################################################################################################
# Mettre ici la requeste qui commence le scrapping
channel = "https://www.youtube.com/c/TsodingDaily/videos"
# Headless : True or False
headless = False
#########################################################################################################################################################################
# Parametre du navigateur
Options = Options()
if headless : Options.add_argument("--headless")
#s = Service("drivers\\geckodriver.exe",0,None,"drivers\\geckodriver.log")
#driver = Firefox(service=s, options=Options)
driver = Firefox(options=Options)
driver.get(channel)
driver.find_element(By.XPATH, "/html/body/c-wiz/div/div/div/div[2]/div[1]/div[4]/form/div/div/button/span").click()
#l = driver.find_elements(By.CLASS_NAME, "style-scope ytd-grid-video-renderer")
l = driver.find_elements(By.CLASS_NAME, "yt-simple-endpoint inline-block style-scope ytd-thumbnail")
print(l)
I dont understand why when i use the class name "yt-simple-endpoint inline-block style-scope ytd-thumbnail" i get nothing but the same code is working with "style-scope ytd-grid-video-renderer"
can you help me ?