Zip Download and Extraction Scraper
Pricing
from $0.01 / 1,000 results
Zip Download and Extraction Scraper
This downloads a zip file from a provided URL and extracts its contents to a specified folder in the key-value store.
Pricing
from $0.01 / 1,000 results
Rating
0.0
(0)
Developer

Balasai Sigireddy
Actor stats
1
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Share
Zip Downloader and Extractor
This Actor downloads a zip file from a provided URL and extracts its contents to a specified folder in the key-value store. It's built with Apify SDK for reliable file handling and data storage.
Included features
- Apify SDK for Python - a toolkit for building Apify Actors in Python
- Input schema - define and easily validate a schema for your Actor's input
- Dataset - store structured data about extracted files
- Key-value store - store the extracted files
How it works
The Actor takes a URL to a zip file and an optional folder name as input. It downloads the zip file asynchronously, extracts all files (skipping directories), and stores each file in the key-value store under the specified folder. Metadata about each extracted file (filename, size, folder) is pushed to the dataset for easy access and review.
Input
url(string, required): URL of the zip file to downloadfolder(string, optional): Folder name in key-value store to extract files to (default: "extracted")
Output
- Dataset: Contains records for each extracted file with filename, size, and folder
- Key-value store: Contains the extracted files stored with keys like
folder/filename
Resources
- Python tutorials in Academy
- Apify Platform documentation
- Integration with Make, GitHub, Zapier, Google Drive, and other apps
Getting started
For complete information see this article. To run the Actor use the following command:
$apify run
Deploy to Apify
Connect Git repository to Apify
If you've created a Git repository for the project, you can easily connect to Apify:
- Go to Actor creation page
- Click on Link Git Repository button
Push project on your local machine to Apify
You can also deploy the project on your local machine to Apify without the need for the Git repository.
-
Log in to Apify. You will need to provide your Apify API Token to complete this action.
$apify login -
Deploy your Actor. This command will deploy and build the Actor on the Apify Platform. You can find your newly created Actor under Actors -> My Actors.
$apify push
Documentation reference
To learn more about Apify and Actors, take a look at the following resources: