The script relies on two dependencies:
- Python Requests
- BeautifulSoup4
Install the dependencies by running:
pip3 install requests
pip3 install bs4python3 mediafire-downloader.py --url https://www.mediafire.com/file/0uzo1dfbxgzwhlr/WindowsInstaller-KB893803-v2-x86.exe/fileThis 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.exeThis 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.exeThis 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.