Код: Выделить всё
import requests
from bs4 import BeautifulSoup
url = "https://starpets.gg/adopt-me/shop/pet/firefly/15292"
result = requests.get(url)
doc = BeautifulSoup(result.text, "html.parser")
tag = doc.find("span", itemprop = "price")
for price1 in tag:
print("Best price", price1.text)
print("-----")
tag = doc.find_all("div", class_ = "_text_j98bt_1 _text__size_m_j98bt_40 _text__weight_bold_j98bt_83 _text__style_normal_j98bt_95 _text__decoration_normal_j98bt_104 _content-price_1gow4_85")
for price2 in tag:
print(price2.text)
Код: Выделить всё
Best price 1.36
-----
1.35 $
1.7 $
3.25 $