Using phyton to analyse html

Hi!
I have to find the span tags of a web
Then I have to pull out the numbers and give the sum of all of them.
I am not sure if I am finding the span tags correctly because when I run the programme It appears:
ModuleNotFoundError: No module named ‘html.entities’; ‘html’ is not a package
I the same folder of the phyton file I have:
image

The programme I’ve wrote (it is not finished yet):
from urllib.request import urlopen
from bs4 import BeautifulSoup
import ssl

Ignore SSL certificate errors

ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

url = input('Enter - ')
html = urlopen(url, context=ctx).read()
soup = BeautifulSoup(html, “html.parser”)

Retrieve all of the anchor tags

tags = soup(‘span’)
for tag in tags:
# Look at the parts of a tag
print(‘TAG:’, tag)
print(‘URL:’, tag.get(‘href’, None))
print(‘Contents:’, tag.contents[0])
print(‘Attrs:’, tag.attrs)

Is this correct to find the span tags?
tags = soup(‘span’)