Skip to content

Automate the extraction of data from ZIP files, offering flexibility for various data sources.

License

Notifications You must be signed in to change notification settings

CogniEpoch/Data-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Data Extractor

This Python script automates the extraction of data from ZIP files, providing a flexible solution for various data sources.

Usage

  1. Clone the repository to your local machine:
    git clone https://github.com/CogniEpoch/Data-Extractor.git
    
  2. Update the script with your source and destination directories and configure ignore and stop files.
  3. Run the script:
    python data_extractor.py
    

Parameters

  • src_dir: Source directory where ZIP files are located.
  • dst_dir: Destination directory where files will be extracted.
  • ignore_files: List of files to ignore during extraction (optional).
  • stop_files: List of files to stop extraction at (optional).

Warning

Specify the src_dir and dst_dir to match your file locations.

Example

Specify source and destination directories:

src_dir = '/content/'
dst_dir = '/content/unzipped'

Specify files to ignore and stop extraction (optional):

ignore_files = ['this.zip', 'that.zip']
stop_files = ['these.zip', 'those.zip']

Important

Ensure that you have a clear understanding of the files in your source directory before running the script.
The script extracts all ZIP files up to the specified stop files and will ignore extracting the provided ignore files (if provided).

Caution

Disclaimer:
This script is for organizational purposes and assumes the user understands the structure of their data files.

About

Automate the extraction of data from ZIP files, offering flexibility for various data sources.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages