title: Get YouTube Playlist urls with python
body: <p>How I can get the playlist urls stored like</p>
  <p><a href="https://i.stack.imgur.com/hKkVv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hKkVv.png" alt="enter image description here" /></a></p>
  <p>here: <a href="https://www.youtube.com/watch?v=VpTRlS7EO6E&amp;list=RDOIhVs0FQ8xc&amp;index=5" rel="nofollow noreferrer">https://www.youtube.com/watch?v=VpTRlS7EO6E&amp;list=RDOIhVs0FQ8xc&amp;index=5</a>
  with bs4?</p>
  <p>Using</p>
  <pre><code>from bs4 import BeautifulSoup as bs
  import requests
  
  r = requests.get('https://www.youtube.com/watch?v=OIhVs0FQ8xc&amp;list=RDOIhVs0FQ8xc&amp;index=1')
  page = r.text
  soup=bs(page,'html.parser')
  #print(soup)
  res=soup.find_all('ytd-playlist-panel-video-renderer')
  print(res)
  </code></pre>
  <p>doesn't return anything. Even printing the soup itself doesn't contain the link I'am looking for (like href=&quot;/watch?v=puNOG62lf-Y&amp;list=RDOIhVs0FQ8xc&amp;index=2&quot;)</p>