Ekstrak gambar dari halaman HTML berdasarkan atribut SRC menggunakan sup beatutif
from urllib.request import urlopen
from bs4 import BeautifulSoup
site = "[insert name of the site]"
html = urlopen(site)
bs = BeautifulSoup(html, 'html.parser')
images = bs.find_all('img')
for img in images:
if img.has_attr('src'):
print(img['src'])
Glorious Gnu