код:
import requests
from bs4 import BeautifulSoup
def parsing():
habr = "
https://www.youtube.com/watch?v=rBlardasGuY&list=R..."
page = requests.get(habr)
soup = BeautifulSoup(page.text, "lxml")
title = soup.title
videos = soup.find_all("ytd-compact-video-renderer", class_="style-scope ytd-compact-renderer")
print(videos)
parsing()
вывод:
[]
Скриншот фрагмента кода удалён модератором.