Skip to main content

PyFileDownloader

A Python module to download any file-type from the internet

How To Download

  • Downloading a File
from PyFileDownloader import Downloader

download=Downloader(url="DOWNLOAD LINK")

headers=download.headers()

is_downloadable=download.validate_url()

download.save() 

Code Breakdown

  • .headers() returns you about the file data like filename, filetype, filesize
  • .validate_url() returns True if the provided url is valid
  • .save() downloads the file and saves it with the name provided in the file header

Save A File With A Custom Name

  • If you would like to download and save a file with a custom name, you can do so with the .save() method. It takes a filename parameter that is set to None by default.
from PyFileDownloader import Downloader

download=Downloader(url="DOWNLOAD LINK")
download.save(filename="custom_name.extension") 

Thank you <3

Hope you found this useful!

Release files for PyFileDownloader 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyFileDownloader 1.2.0
File Size Uploaded
PyFileDownloader-1.2.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyFileDownloader 1.2.0
File Interpreter ABI Platform
PyFileDownloader-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / PyFileDownloader-1.2.0.tar.gz

Download URL PyFileDownloader-1.2.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d825951d8c420164c95e340c697f7f31a9cd58bc9163ade94f75c97be8efae1b
BLAKE2b-256 checksum
How to use checksums
babac405d3659e90cc9055cde69811cc6a08e436bff09ca2c530bbfa09e8c024
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.4

Release files / PyFileDownloader-1.2.0-py3-none-any.whl

Download URL PyFileDownloader-1.2.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20f3e5a4812d563d57577b51ec16ed992bd694ff50befc11988a5fe3109dcf6f
BLAKE2b-256 checksum
How to use checksums
aca20cd9aa331c625de4c027ef1e1ea76e0e27434d4a135b833502f5ab8d2836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page