Get data from the meta tags using BeautifulSoup

Viewed 10545

I am trying to read the description from the meta tag and this is what I used

soup.findAll(name="description")

but it does not work, however, the code below works just fine

soup.findAll(align="center")

How do I read the description from the meta tag in the head of a document?

1 Answers
Related