Usando o módulo GLOB para pesquisar todos os arquivos HTML no diretório atual em Python
import glob
# path of the current directory
path = '.'
curfiles = glob.glob(path + '/*.html')
for file in curfiles:
print(file)
Copy Code
Pythonist