I\'m trying to scrape a website, but it gives me an error.
I\'m using the following code:
import urllib.request from bs4 import BeautifulSoup get =
I fixed it by adding .encode("utf-8") to soup.
.encode("utf-8")
soup
That means that print(soup) becomes print(soup.encode("utf-8")).
print(soup)
print(soup.encode("utf-8"))