searching html files in directories using python -
searching html files in directories using python -
i have html parser function , needs absolute path each file.
how search directory , find files ending .html , homecoming absolute path of each file?
have considered using python os module? has listdir(path) command
os.listdir(path) homecoming list containing names of entries in directory given path. list in arbitrary order. not include special entries '.' , '..' if nowadays in directory. availability: unix, windows. use files names in directory, filter out non-html files, , prepend path directory absolute path. https://docs.python.org/2/library/os.html
python html search path directory
Comments
Post a Comment