Hi guys, Im trying to download the audio(mp3) of a video on youtube using built-in module urllib but the problem is there's no html element with a href attribute that points to the resource, so how to find it??
Here's my code, I chose a python tutorial for the url:
from urllib.request import urlopen
import re
url = https://www.youtube.com/watch?v=kqtD5dpn9C8&t=2208s
page = urlopen(url)
html = page.read().decode("utf-8")
links = re.findall("https://.*\.mp3",html)
Here links is empty so no html element with http that points to the audio, what Im doing wrong?