Skip to main content

Simple Python Package for MediaFire File Download and Information Retrieval

Project description

Mediafire logo MediaFireGrabber [Now Supporting Both Files & Folders] (Python Edition)

A simple Python package that provides an easy-to-use interface for downloading files and folders from MediaFire and retrieving information about them.

Features

  • Download folders and files from MediaFire by providing the folder/file URL.
  • Retrieve information about files & folders, such as file name, owner name, size, creation date, and more.

Installation

You can install MediaFireGrabber using pip:

pip install mediafiregrabber

Usage

Full Information Retrieving

import mediafiregrabber

# For Brief Information
print(mediafiregrabber.info(url)) # For Both Files & Folders. 

You can also use LoadFilesAndFolders=True as argument to load the files and folders present inside a folder. Default is False.

Partial Information Retrieving

# For Finding File Name
print(mediafiregrabber.name(url))  # Only For Files

# For Finding File Size
print(mediafiregrabber.size(url)) # Only For Files

# For Finding Uploading Date
print(mediafiregrabber.uploaddate(url)) # Only For Files

# For Finding Format of the file to be downloaded (PDF, ZIP, RAR...)
print(mediafiregrabber.format(url)) # Only For Files

# For Finding Uploader's Country
print(mediafiregrabber.uploadregion(url)) # Only For Files

# For Finding Direct Download Link
print(mediafiregrabber.downloadlink(url)) # Only For Files

Download Files or Folders

import mediafiregrabber

mediafiregrabber.download(url)

You can pass save="path" argument along with url too!

CLI Usage

$ mediafiregrabber <fileurl> <folderurl>...

Similarly, you can use --path argument to add your download location.

Make sure to replace url with actual URLs as needed.

License

This project is licensed under the MIT License

Contribution

Contributions are welcome! If you have any feature suggestions, bug reports, or pull requests, please open an issue or a pull request on GitHub.

Disclaimer

This package is developed independently and is not affiliated with or endorsed by MediaFire.

PyPI version License

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

mediafiregrabber-1.4.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

mediafiregrabber-1.4-py3-none-any.whl (5.6 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