I was wondering how to webscrape the title of the first video in an youtube-playlist ?
what I have so far try'd:
import urllib.request
from bs4 import BeautifulSoup
theurl = "https://www.youtube.com/watch?v=lp-EO5I60KA&list=PLMC9KNkIncKtPzgY-5rmhvj7fax8fdxoj"
thepage = urllib.request.urlopen(theurl)
soup = BeautifulSoup(thepage, "html.parser")
print(soup.findAll("h1",{"class":"title style-scope ytd-video-primary-info-renderer"}))
But it only prints = "[]" as output. Am I doing something wrong here ?
greetings