I am trying to get the lyrics for a song from genius lyrics using beautifulsoup but when trying to print out the lyrics, I get no output. Here is my code:
import requests
from bs4 import BeautifulSoup
songURL = requests.get("https://genius.com/Marshmello-and-bastille-happier-lyrics")
song = songURL.content
soup = BeautifulSoup(song, 'lxml')
lyrics = soup.find_all("section")
for lyr in lyrics:
for lyr1 in lyrics.select("p"):
print(lyr1.text)
Why is this not working, can somebody please look into this as I have been trying to do this for a while now.