title: I am trying to scrap video details from a youtube channel using selenium but as a output i only get only one video details multiple times
body: <pre><code>from selenium import webdriver
  from selenium.webdriver.common.by import By
  from selenium.webdriver.common.keys import Keys
  
  driver = webdriver.Chrome()
  driver.get('https://www.youtube.com/channel/UC9B_ywLK2Vne4mtmGgWZklg/videos')
  
  videos = driver.find_elements(By.CLASS_NAME, 'style-scope ytd-grid-video-renderer')
  
  for video in videos:
      title = driver.find_element(By.XPATH, './/*[@id=&quot;video-title&quot;]').text
      views = driver.find_element(By.XPATH, './/*[@id=&quot;metadata-line&quot;]/span[1]').text
      when = driver.find_element(By.XPATH, './/*[@id=&quot;metadata-line&quot;]/span[2]').text
  
      print(title, views)  
  </code></pre>
  <p>Above code was expected to scrap videos details from targeted youtube channel but it only returns only details of first video multiple times!</p>
  <p>Here is the output:
  <a href="https://i.stack.imgur.com/Um0WK.png" rel="nofollow noreferrer">This is the output!</a></p>