Skip to content

burnedskies/zipranger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZipRanger

ZipRanger is a command-line interface (CLI) tool designed for selectively extracting files from ZIP archives. The providing server must support range requests for the tool to work correctly.

Be aware that while the tool attempts the number of requests sent, there are opportunities for further optimization. Nonetheless, the tool is generally functional for most use cases as it is.

Example Usage

Retrieve a File List

To list the files contained in a ZIP archive, run the following command:

zipranger -u {url} -filelist

Using a Proxy

If you need to route your requests through a proxy, specify the protocol and address as shown:

zipranger -u {url} -p proto://host:port -filelist

Extract Specific Files

To extract specific files from the ZIP archive, provide a list of patterns following the necessary flags. The tool supports wildcards and uses filepath.Match for pattern matching.

zipranger -u {url} -x documents/*.txt pictures/*.png

Specify Custom Headers

To attach custom HTTP headers to your requests, use this format:

zipranger -u {url} -H "User-Agent: <agent>" -H "Authorization: <auth>"

About

CLI tool to selectively extract contents from ZIP archives

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages