How to find all the tags in the page using BeautifulSoup

0 votes
Can I find all the tags in the page? Anchor, division and all other tags. How can I do that?
Apr 2, 2019 in Python by Suri
396 views

1 answer to this question.

+1 vote

Try this code:

for tag in soup.find_all(True):
    print(tag.name)
answered Apr 2, 2019 by Soumya

Related Questions In Python

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to remove all of the data in a table using Django?

Hello @kartik, Inside a manager: def delete_everything(self): ...READ MORE

answered Aug 12, 2020 in Python by Niroj
• 82,680 points
160 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to parse html file to BeautifulSoup?

Hey. Refer to the following code: driver.get("link") html = ...READ MORE

answered Apr 2, 2019 in Python by Kirti
943 views
0 votes
1 answer