Hii,
You have to install the modules like bs4, as it's not part of the default, standard Python pack.
This worked for me in python3:
import urllib.request
htmlfile = urllib.request.urlopen("http://google.com")
htmltext = htmlfile.read()
print(htmltext)
Hope this works!!
Thank You!!