diff --git a/aula192.py b/aula192.py index 6bfe284..a25d3aa 100644 --- a/aula192.py +++ b/aula192.py @@ -14,8 +14,8 @@ from bs4 import BeautifulSoup url = 'http://127.0.0.1:3333/' response = requests.get(url) -raw_html = response.text -parsed_html = BeautifulSoup(raw_html, 'html.parser') +bytes_html = response.content +parsed_html = BeautifulSoup(bytes_html, 'html.parser', from_encoding='utf-8') # if parsed_html.title is not None: # print(parsed_html.title.text)