import requests
from bs4 import BeautifulSoup
def get_html(url):
r = requests.get(url)
return r.text
def get_data(html):
soup = BeautifulSoup(html, 'lxml')
divs = soup.find_all('div')
return divs[21].text
def main():
url = 'https://www.azlyrics.com/lyrics/imaginedragons/roots.html'
print(get_data(get_html(url)))
if __name__ == '__main__':
main()