import re
from urllib.request import urlopen
from bs4 import BeautifulSoup

#html = urlopen("http://www.pythonscraping.com/pages/page1.html") 
html = urlopen("http://www.pythonscraping.com/pages/page3.html") 
bsObj = BeautifulSoup(html.read(),'html.parser')    #Not html.parser will pop-up warning
print(bsObj.h1)

#for child in bsObj.find("table",{"id":"giftList"}).children:
#    print(child)

images = bsObj.findAll("img",{"src":re.compile("\.\.\/img\/gifts/img.*\.jpg")})
for image in images:
    print(image["src"])
