📜  爬取文件夹python代码示例

📅  最后修改于: 2022-03-11 14:45:58.690000             🧑  作者: Mango

代码示例1
for root, dirs, files in os.walk('/tmp'):
    if os.path.basename(root) != 'modules':
        continue
    data = [parse_file(os.path.join(root,f)) for f in files]