MediafireDL
MediafireDL is an automation tool to download files from mediafire without having to do any extra steps, which allows you to retrieve data from any mediafire link.
I designed this to make it work on a python console application, multi threading is not supported for now, but my goal is to make it easy to download and show progress trough GUI frameworks like kivy or pyqt5.
You can use the following file as a test, however it will be removed soon.
Go to test file.
What can it do?
MediafireDL allows you to:
- Get file size.
- Get file name.
- Get true file link.
- Download a file.
- Bulk download files.
directly from a single URL.
Requirements
This module uses beautifulsoup4 and requests, if you do not have these modules installed, they will install automatically.
Installation
pip install mediafiredl
Importing
from mediafiredl import MediafireDL
Available functions
from mediafiredl import MediafireDL as MF
url = "https://www.mediafire.com/file/ipnyzofjcwri357/test-10mb.bin/file"
# Returns a string with the file name, including its extension.
file_name = MF.GetName(url)
# Returns true file link
file_link = MF.GetFileLink(url)
# Returns file size in bytes
file_size = MF.GetFileSize(url)
# Returns the conversion from bytes to megabytes
file_size_mb = MF.AsMegabytes(file_size)
# Downloads a file to local directory and returns its download path. A second argument can be used to assign the output directory, it must not end with a "\".
file_result = MF.Download(url)
# Custom output example:
file_result = MF.Download(url, "C:\\Users\\User\\Desktop")
#or
file_result = MF.Download(url, output="C:\\Users\\User\\Desktop")
# Bulk file downloads
bulk_urls = [
"url1",
"url2",
"url3",
"url4"
]
# Displays how many files you will be downloading and the total size.
# After displaying this information, it will start downloading the files one by one.
MF.BulkDownload(bulk_urls)
Metadata
Release files for mediafiredl-fork 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mediafiredl_fork-0.1.tar.gz | 4.3 kB | Without provenance | Details for mediafiredl_fork-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mediafiredl_fork-0.1-py3-none-any.whl | Python 3 | none | any | Details for mediafiredl_fork-0.1-py3-none-any.whl |
Total release size: 9.0 kB
Release files / mediafiredl_fork-0.1.tar.gz
| Download URL | mediafiredl_fork-0.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2013f51fd82908089016f16f9595085742bfccfea8cf2c1095c951c3733ad8f
|
|
BLAKE2b-256 checksum How to use checksums |
a6fe0d2f333c9acbb11e26c62babc8bcffa7bb622666b06a0fea13f0d20124b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.5
|
Release files / mediafiredl_fork-0.1-py3-none-any.whl
| Download URL | mediafiredl_fork-0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb225d97f157cb91480ba9e75b1f42202acacc4edee04c857d89da4787ca6f1f
|
|
BLAKE2b-256 checksum How to use checksums |
eb51047141d8be2232780f9862942f685e74b857e442716b43e44769068b862e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.5
|
Security for mediafiredl-fork 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.