from bs4 import BeautifulSoup
html = '<div class="price">100円</div><div class="note">送料込み</div><div class="price">200円</div>'
soup = BeautifulSoup(html, 'html.parser')
prices = soup.find_all('div', class_='price')
for p in prices:
print(p.text)
from bs4 import BeautifulSoup
html = '<span class="tag">Python</span><span class="tag">AI</span><span class="label">おすすめ</span>'
soup = BeautifulSoup(html, 'html.parser')
for tag in soup.find_all('span', class_='tag'):
print(tag.text)