pessoal na aula web scraping https://cursos.alura.com.br/course/web-scraping-data-science-python/task/61709, atividade 5 estou cm problemas na execução da função get_text(),
from urllib.request import urlopen
from bs4 import BeautifulSoup
import bs4
url = 'https://alura-site-scraping.herokuapp.com/hello-world.php'
response = urlopen(url)
html= response.read()
soup = BeautifulSoup(html, 'html.parser')
print(soup.find('h1', id = 'hello-word').get_text())
print(soup.find('p'))
AttributeError Traceback (most recent call last)
<ipython-input-25-50b2f76c7223> in <module>
8
9 soup = BeautifulSoup(html, 'html.parser')
---> 10 print(soup.find('h1', id = 'hello-word').get_text())
11 print(soup.find('p'))
AttributeError: 'NoneType' object has no attribute 'get_text'
Alguem sabe como resolve??