0

I am tried to scrape the video details of a particular channel. but it gives me a blank list (nothing) and also didn't through any error. I could not understand where is the problem. here is my code:

import numpy as np 
import pandas as pd 
import requests
import random 
from bs4 import BeautifulSoup
urls = [
    'https://www.youtube.com/c/CodeWithHarry/videos'
]
url = urls[0]
req = requests.get(url)
soup = BeautifulSoup(req.text,'html.parser')
title = soup.find_all('a',class_='yt-simple-endpoint style-scope ytd-grid-video-renderer')
print(tilte)

Output of the code:

[]

0 Answers0