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
10 views

1 answer to this question.

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
12 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
56 views
0 votes
1 answer

How to find the index of a particular value in a dataframe?

First, use the dataframe to match the ...READ MORE

answered Apr 8 in Python by Esha
115 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 in Python by Kirti
16 views
0 votes
1 answer