Uso del módulo Glob para buscar todos los archivos HTML en el directorio actual en Python

import glob
# path of the current directory
path = '.'
curfiles = glob.glob(path + '/*.html')
for file in curfiles:
    print(file)
    
Copy Code
Pythonist