Код: Выделить всё
from bs4 import BeautifulSoup
import requests
URL = "https://pauta.com.br/produto/31394"
headers = {'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36"}
site = requests.get(URL, headers=headers)
soup = BeautifulSoup(site.content, 'html.parser')
#print(soup.prettify())
title = soup.find('h4', class_ = 'ng-binding')
print(title)
Что я делаю не так?
Подробнее здесь: https://stackoverflow.com/questions/691 ... python-and