Can anyone explain to me why am I getting this error message? I have the exact same code in another project but after creating a new venv and install requests, bs4 and html.parser
I get this message. I don't understand, at all.
import requests
import bs4 as BeautifulSoup
import html.parser
source = requests.get('https://docs.python.org/3/library/html.parser.html')
soup = BeautifulSoup(source.text, 'html.parser')
print(soup)