Scraping YouTube links from a webpage
问题 I've been trying to scrape YouTube links from a webpage, but nothing has worked. This is a picture of what I've been trying to scrape.: This is the code I tried most recently: youtube_link = soup.find("a", class_="ytp-title-link yt-uix-sessionlink") And this is the link to the website the YouTube link is in: https://www.electronic-festivals.com/event/i-am-hardstyle-germany 回答1: Most of the youtube links are within an iframe and javascript also needs to run. Try using selenium. The following