I've been trying to extract html data with BeautifulSoup, but I can't seem to properly take the 'class' tag from the html and into my code. Here's what I tried:
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
url = "https://allauthor.com/quotes/"
uClient = uReq(url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html, "html.parser")
containers = page_soup.findAll("div", {"class": "quote-list"})
print(containers)
Here I'm expecting to get the list of quotes from the website, but for some reason I get nothing when I run the code. How do I get the list of quotes, or at least one quote in plain text on my console?