In getting the video length from a YouTube url, Inspect from web browser shows there's a line: Then I use requests and BeautifulSoup to get it: import requests from bs4 import BeautifulSoup url = "https://www.youtube.com/watch?v=ANYyoutubeLINK" response = requests.get(url) response.raise_for_status() soup = BeautifulSoup(response.text, 'html.parser') duration_span = soup.find_all('span', class_='ytp-time-duration') print (duration_span) Neither "soup.find_all" nor "soup.find" works. What went wrong? Continue reading...