Skip to content

Python script that takes a directory path and recursively scrapes all the information from the files and subdirectories. It then writes the contents of each file to an output file.

Notifications You must be signed in to change notification settings

Omar7001-B/FolderScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FolderScraper

Description

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.

Features

  • 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.

Requirements

  • Python 3.x
  • Standard libraries (os)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/FolderScraper.git
  2. Change to the project directory:

    cd FolderScraper

Usage

  1. Open the script folder_scraper.py in your preferred code editor.

  2. Set the directory_path variable to the desired directory you want to scrape.

  3. Run the script:

    python folder_scraper.py
  4. The output will be saved in output.txt.

Contribution

Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.

Acknowledgments

  • Inspired by the need to efficiently gather file contents from directories.

About

Python script that takes a directory path and recursively scrapes all the information from the files and subdirectories. It then writes the contents of each file to an output file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages