Before doing any contribution read CONTRIBUTING.
Email: [email protected]
General Discord: https://discord.gg/dFD5HHa
Developer Discord: https://discord.gg/rxNNHYN9EQ
pip install pretty-downloader
import pretty_downloader
pretty_downloader.download(<YOUR URL>)
OR
from pretty_downloader import download
download(<YOUR URL>)
- url : str, required
- This should be the url of the file you wish to download
- file_path : str, optional
- The path to save the file (Default: "")
- file_name : str, optional
- The file name you want the file to be saved with. Should include file extension (Default: None)
- show_progress : bool, optional
- Option to disable/enable the default progress bar (Default: True)
- name : str, optional
- The name you want to appear in the progress bar (default: 'Download progress')
- block_size : int, optional
- The size of the download block (Default: 1024)
- proxies : dict, optional
- Dictionary of proxies to be used (Default: None)
- Example: {'http': 'http://135.125.218.47:8080'}
- headers : dict, optional
- Dictionary of headers (Default: None)
- Example: {'user-agent': 'Mozilla/5.0'}
- RETURNS: Path of file downloaded