Python

AttributeError: module 'urllib' has no attribute 'request' - Python

AttributeError: module 'urllib' has no attribute 'request' - Python, someone asked me to explain?

I got this following error while running the python program. 

"AttributeError: module 'urllib' has no attribute 'request'"

SOURCE CODE: https://stackoverflow.com/questions/43982002/extract-the-src-attribute-from-an-img-tag-using-beautiful-soup

CODE:

from bs4 import BeautifulSoup as BSHTML
import urllib

page = urllib.request.urlopen('https://github.com/abushoeb/emotag')
soup = BSHTML(page)
images = soup.findAll('img')

for image in images:
    # Print image source
    print(image['src'])
    # Print alternate text
    print(image['alt'])

UPDATED CODE:

import urllib.request

VIDEO GUIDE:

Post your comments / questions