How find all the tag with a particular name using BeautifulSoup?

0 votes
I want to find all the tags containing a particular name "channel". How can I do this?
Apr 2 in Python by Kirti
5 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You can do it like this:

for tag in soup.find_all(re.compile("channel")):
    print(tag.name)
answered Apr 2 by Dinesh

Related Questions In Python

0 votes
1 answer

Find tag starting with a particular letter using BeautifulSoup?

Try something like this: for tag in soup.find_all(re.compile("^b")): ...READ MORE

answered Apr 2 in Python by Taj
6 views
0 votes
1 answer

How can I lookup hostname using the IP address with a timeout in Python?

Good question. I actually was stuck with ...READ MORE

answered Feb 6 in Python by Nymeria
• 3,500 points
39 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 in Python by Kirti
10 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.