The proper way to use content instead of text
soup = BeautifulSoup(response.content, 'html.parser') # Use response.content instead of response