Skip to main content

Download utility as an easy way to get files from the net

Project description

Table of Contents generated with DocToc

pywgett

License PyPI version

pywgett is a command-line utility built with Python for downloading files from the internet. It provides an easy-to-use interface to fetch files using URLs, with support for custom headers, resume downloads, and more.

Prerequisites

Before using pywgett, ensure you have the following:

  • Python 3.6+
  • pip (Python package installer)

Installation

You can install pywgett using pip:

pip install pywgett

Alternatively, install it from the source on GitHub:

git clone https://github.com/ktechhub/pywgett.git
cd pywgett
python setup.py install

Usage

Download a file from a URL:

pywget --help
Usage: pywget [OPTIONS] URL

  Download utility to fetch a file from the internet.

  Args:     url (str): The URL of the file to download.     output_file (str):
  The name of the file to save the downloaded file as.     header (list):
  Optional HTTP headers to include in the request.     verbose (bool): Enable
  verbose mode.

  Returns:     None

Options:
  -o, --output_file TEXT  Optional output file name
  --header TEXT           Custom headers to include in the request, e.g.
                          --header 'Authorization: Bearer token', --header
                          'Content-Type: application/json', --header 'User-
                          Agent: Mozilla/5.0', etc.
  --verbose               Enable verbose mode to output detailed information
                          about the download process.
  --version               Show the version and exit.
  --help                  Show this message and exit.

Options:

  • -o, --output_file: Optional output file name.
  • --header: Custom headers to include in the request.
  • --verbose: Enable verbose mode.

Example usage:

pywget https://www.example.com/file.zip
pywget https://www.example.com/file.zip --output_file my_file.zip --header "Authorization: Bearer token" --verbose

Features

  • Download files from URLs with ease.
  • Supports custom HTTP headers for authentication and content type.
  • Resume interrupted downloads automatically.
  • Displays progress bar during file downloads.
  • Verbose mode for detailed download process information.

GitHub

For more details, visit the GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contribution

If you want to contribute, kindly see this contribution guide.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywgett-1.0.1.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

pywgett-1.0.1-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page