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
291 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 in Python by Niroj
• 67,460 points
55 views
–1 vote
2 answers

How to find the size of a string in Python?

following way to find length of string  x ...READ MORE

answered Mar 29, 2019 in Python by rajesh
• 1,230 points
320 views
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
677 views
0 votes
1 answer
0 votes
1 answer

How can I write code to find a palindrome in python without using string functions?

In Logic 1, try if i<int(length/2): instead of if i<int((length/2+1)): In ...READ MORE

answered Jan 16, 2019 in Python by charlie_brown
• 7,780 points
8,271 views