from urllib.request import urlopen from bs4 import BeautifulSoup
url = 'https://alura-site-scraping.kerokuapp.com/hello-world.php'
response - urlopen(url)
html = response.read()
soup = BeautifulSoup(html, 'html.parser')
soup.find('h1', id = 'hello-world')
Resposta foi:
NameError Traceback (most recent call last) in 4 url = 'https://alura-site-scraping.kerokuapp.com/hello-world.php' 5 ----> 6 response - urlopen(url) 7 8 html = response.read()
NameError: name 'response' is not defined