Get Content From Certain Tags With Certain Attributes Using Bs4
I need to get the content from the following tag with these attributes: . An example of the HTML I'll encounter would be Hello
Solution 1:
page = BeautifulSoup(text, 'html.parser')
names = page.find_all('span' , class_ = 'h6 m-0')
Without knowing your use case I don't know if this will work.
Post a Comment for "Get Content From Certain Tags With Certain Attributes Using Bs4"