Skip to main content

MediafireDL is an automation tool to download files from mediafire without having to do any extra steps.

Project description

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)

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

mediafiredl-0.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mediafiredl-0.0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mediafiredl-0.0.2.tar.gz.

File metadata

  • Download URL: mediafiredl-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for mediafiredl-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a45e4fc40536b15cfeae9ad7db6699c270526cf9784f038f2069e8e136ef3693
MD5 41924ed5fa08df4baf9d966b7c92e218
BLAKE2b-256 df7a20ddcff71db38225c7832c39778275e647ec7bc12913b7e7aa6b05b24e75

See more details on using hashes here.

File details

Details for the file mediafiredl-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: mediafiredl-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for mediafiredl-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49710c5317b99adcbbdb1545b4b4fdc973e22275fee60b02b4651accc241d7f7
MD5 2ae04145030a99c068851f6088c5ecd6
BLAKE2b-256 efc1eb0a75af850424ac4e213a765eec1ff36e7d40f0604fcd82fd81cf1c13cd

See more details on using hashes here.

Supported by

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