The script relies on two dependencies:
- Python Requests
- BeautifulSoup4
Install the dependencies by running:
pip3 install requests
pip3 install bs4
python3 mediafire-downloader.py --url https://www.mediafire.com/file/0uzo1dfbxgzwhlr/WindowsInstaller-KB893803-v2-x86.exe/file
This will save downloaded file to WindowsInstaller-KB893803-v2-x86.exe in current directory.
python3 mediafire-downloader.py --url https://www.mediafire.com/file/0uzo1dfbxgzwhlr/WindowsInstaller-KB893803-v2-x86.exe/file --saveas filename.exe
This will save downloaded file to filename.exe in current directory.
python3 mediafire-downloader.py --url https://www.mediafire.com/file/0uzo1dfbxgzwhlr/WindowsInstaller-KB893803-v2-x86.exe/file --saveas /home/rehmat/filename.exe
This will save downloaded file to /home/rehmat/filename.exe.
If this GIST is useful and you need this to be packaged as a PIP package, star it or comment below and I'll package it for easy installation through PyPi.