#procura imagens import urllib.request import re req = urllib.request.Request("http://sapo.pt", headers={'User-Agent': 'Mozilla/5.0'}) htmltext = urllib.request.urlopen(req).read() if htmltext is None: print("nada") else: regex='