import requests
from bs4 import BeautifulSoup
URL = "https://parkhotelbobry.ru/%D1%8D%D0%BA%D0%BE_%D0%BE%D1%82%D0%B5%D0%BB%D1%8C"
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0"}
html = requests.get(URL, headers = headers)
soup = BeautifulSoup(html.text, "html.parser")
catalog = soup.find("div", class_ = "catalog").find_all("div", class_="descr")
for hostel in catalog:
h1 = hostel.find("div", calss_ = "name").text
print(h1.text)
если так то выдает ошибку "'NoneType' object has no attribute 'text'"