FolderScraper is a Python script designed to recursively scrape and extract the content of files within a specified directory on Windows. It allows users to gather information from all files in a folder and its subfolders, making it easy to compile and review file contents.
- Recursively navigates through directories and subdirectories.
- Reads and streams content from text files.
- Outputs the gathered information into a single text file.
- Handles unreadable files gracefully with error logging.
- Python 3.x
- Standard libraries (os)
-
Clone the repository:
git clone https://github.com/yourusername/FolderScraper.git
-
Change to the project directory:
cd FolderScraper
-
Open the script
folder_scraper.py
in your preferred code editor. -
Set the
directory_path
variable to the desired directory you want to scrape. -
Run the script:
python folder_scraper.py
-
The output will be saved in
output.txt
.
Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.
- Inspired by the need to efficiently gather file contents from directories.