Я хочу спарсить рейтинговое пиво с этой страницы https:/ /www.brewersfriend.com/homebrew/recipe/v ... king-clone с BeautifulSoup, но он не работает.
Это мой код:
Это мой код:
Код: Выделить всё
import requests
import bs4
from bs4 import BeautifulSoup
url = 'https://www.brewersfriend.com/homebrew/recipe/view/16367/southern-tier-pumking-clone'
test_html = requests.get(url).text
soup = BeautifulSoup(test_html, "lxml")
rating = soup.findAll("span", class_="ratingValue")
rating
Подробнее здесь: https://stackoverflow.com/questions/565 ... utifulsoup