this is one of the first useful thing i created lol, but i am archiving this since lot of providers are down but if you want the code that do this, check out the official repo , here you will find the real code
- All Information Of File Is Available
- No Need To Sign Up Or Usage Of Tokens
- Data Is In JSON Format
- Download the file
- Switch Between Just Download Link Or ALL Information
- Very Easy To Use
You Can Install Direct Download Using PIP
pip install Direct-Download#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 #'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 #'https://cdn-126.anonfiles.com/n4pdf5Fdy1/889ab081-1667110179/night-mountains-minimalist-8k-wo (1).jpeg'Get All Information About File metadata=True
from Direct_Download import Direct 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'}Download the file download=True
from Direct_Download import Direct url = Direct() #Use download By Enabling download to True for downloading your file url.mediafire('https://www.mediafire.com/file/n2kcs3n9nd88vnr/picture.jpeg/file', download=True)Contributors are always welcome!