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.1.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file Direct_Download-0.4.1.tar.gz
.
File metadata
- Download URL: Direct_Download-0.4.1.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 | bb4c5b090ce67d0508d9595028ffbb10f986ebff36f8eabeea1ee451e5022bc2 |
|
MD5 | fbbf338aa6b069affa97c02ca71fdd08 |
|
BLAKE2b-256 | 99758ecf727d5c423e59123ee0a165387b9992dba08f13b061fbbf57f8bdfb0c |
File details
Details for the file Direct_Download-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: Direct_Download-0.4.1-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 | 01a1696945eca1bec97dc7f6cf9aa2a38f2ae23599105b27baf03b06beb49666 |
|
MD5 | 9ad595bd01b4605a2dcd762fea4aee52 |
|
BLAKE2b-256 | 6109f2608d2c37141e11f4d80e6d230f734435c8c0d2aaf9fe39a4b1bbfbd99d |