Z
Z
zyusifov112020-12-01 23:01:11
Python
zyusifov11, 2020-12-01 23:01:11

Finding all BeautifulSoup classes?

h1 = soup.find_all("h1")
finds all h1 tags and how to find all elements that have a certain class?
h1 = soup.find_all("h1", class_="h1") - something like this only so that not only in h1 tags but in all tags I searched for a class.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-12-01
@zyusifov11

emnip, just.find_all(class_="className")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question