A Direct Downloader Module Which Will Get Direct Download Link From Some Popular File Uploading Websites
Project description
Feautres
- All Information Of File Is Available
- No Need To Sign Up Or Usage Of Tokens
- Data Is In JSON Format
- Redirect link in default browser
- Switch Between Just Download Link Or ALL Information
- very Easy To Use
Supported Website
Installation
You Can Install Direct Download Using PIP
pip install Direct-Download
Quick Start
#First Import Direct From Module
from Direct_Download import Direct
#Declaring Variable As a Class
url = Direct()
#For mediafire
link = url.mediafire('https://www.mediafire.com/view/n2kcs3n9nd88vnr/picture.jpeg/file')
print(link)
#Output
#{'directDownload': 'https://download1482.mediafire.com/4f1knkpxhq6g/n2kcs3n9nd88vnr/picture.jpeg'}
#For Anonfiles
link = url.anonfiles('https://anonfiles.com/n4pdf5Fdy1/night-mountains-minimalist-8k-wo_1_jpeg')
print(link)
#Output
#{'directDownload': 'https://cdn-126.anonfiles.com/n4pdf5Fdy1/889ab081-1667110179/night-mountains-minimalist-8k-wo (1).jpeg'}
Usage/Examples
Get All Information About File metadata=True
from Direct_Download import Direct
from pprint import pprint
url = Direct()
#Use Metadata By Enabling Metadata to True
link = url.mediafire('https://www.mediafire.com/file/n2kcs3n9nd88vnr/picture.jpeg/file', metadata=True)
print(link)
# Output
#{'data': {'file': {'metadata': {'DateAndTime': {'date': '2022-10-20',
# 'time': '11:00:27'},
# 'id': 'www.mediafire.com',
# 'name': 'picture',
# 'size': {'readable': '73.62KB'}},
# 'url': {'directDownload': 'https://download1482.mediafire.com/h32ugeuxwitg/n2kcs3n9nd88vnr/picture.jpeg',
# 'original': 'https://www.mediafire.com/file/n2kcs3n9nd88vnr/picture.jpeg/file'}}},
# 'status': 'true'}
Open Link In Your Browser redirect=True
from Direct_Download import Direct
url = Direct()
#Use Redirect By Enabling Redirect to True
url.mediafire('https://www.mediafire.com/file/n2kcs3n9nd88vnr/picture.jpeg/file', redirect=True)
Links
Contributors
Contributorsare always welcome!
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
Direct_Download-0.4.2.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file Direct_Download-0.4.2.tar.gz
.
File metadata
- Download URL: Direct_Download-0.4.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1972c6a60e28641a53d6e86173f72146ffe84217dbedd8a067124e3f1e0eb765 |
|
MD5 | 9b3cef94f587a1c219b563d7b97d8022 |
|
BLAKE2b-256 | 1d00fc1d68b634c51f57d239b106d1ee3767d30a7becedfb348a3be98c269222 |
File details
Details for the file Direct_Download-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: Direct_Download-0.4.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dd78c6f23aa4b5d467a08fd8ff52876196d8b7bb691c5cae139f487516cfe44 |
|
MD5 | b0e9a1d02599b59d6c5831dddf37020c |
|
BLAKE2b-256 | c389d7d7e3653e4e90abd5db6d9a66396fdf2d75d74e7fee877297357a9d638c |