Python Crawling & Data Mining
Jun 10, 2024 · Fundamentals
How to Scan Thousands of Word Files for a Keyword Using Python
This article explains how to use Python's os module and python-docx library to recursively traverse a folder hierarchy, read .docx files, search for a specific keyword such as "nan", and output the names of matching documents, with optional performance tips.
File AutomationOS modulePython
0 likes · 5 min read
