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
1,023 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,840 points
4,244 views
0 votes
1 answer
0 votes
1 answer

How to web scrape using python without using a browser?

Yes, you can use the headless mode. ...READ MORE

answered Apr 2, 2019 in Python by Yogi

edited Oct 7, 2021 by Sarfaraz 13,066 views
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
1,936 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP