Package: redvid
redvidSmart downloader for ReddithostedvideosFeaturesDownload local hosted videos with audio.Requires onlyrequestsandFFmpeg.Ability to decide quality.Bypass bot detection.Installationredvidrequires Python 3.Usepipto install the package from PyPI:pipinstallredvidOr, install the latest version of the package from GitHub:pipinstallgit+https://github.com/elmoiv/redvid.gitUsageUsingredvidto download a video:via terminal (usingcredvid.py):> python credvid.py --helpusage: credvid.py [-h] -u URL [-p PATH] [-o] [-mxq] [-mnq] [-mxd MAXDURATION][-mxs MAXSIZE] [-am] [-px PROXIES]Argument parser for redvid modulerequired arguments:-u URL, --url URL     Post URL for Reddit hosted videooptional arguments:-p PATH, --path PATH  Custom path for downloaded videos-o, --overwrite       Overwrite existing videos and ignore exception-mxq, --maxquality    Auto select maximum quality-mnq, --minquality    Auto select minimum quality-mxd MAXDURATION, --maxduration MAXDURATIONIgnore videos that exceed this duration (in seconds)-mxs MAXSIZE, --maxsize MAXSIZEIgnore videos that exceed this size (in bytes)-am, --automax        Automatically download video with maximum size (Helpsfor old reddit videos with unknown qualities)-px PROXIES, --proxies PROXIESDownload videos through proxies for blocked regionsvia scripts:fromredvidimportDownloaderreddit=Downloader(max_q=True)reddit.url='https://v.redd.it/c8oic7ppc2751'reddit.download()or__import__('redvid').Downloader(url='https://v.redd.it/c8oic7ppc2751',max_q=True).download()Installing FFmpegWindows:https://m.wikihow.com/Install-FFmpeg-on-Windows(You may need to restart your pc after applying these steps)Linux:sudo apt install ffmpegMac OS:installHomebrew:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Then:$ brew install ffmpegTestsHere are a few sample tests:Video onlyVideo with audioGet best quality according to given size (Automated)Choose PATHAuto-detect maximum qualityAuto-detect minimum qualitySkip file check and overwriteSilent download (No logging)Set maximum video sizeSet maximum video size (different technique)Set maximum video durationSet maximum video duration (different technique)Changelogv1.1.3:#20Added a feature to create a folder in case it does not exist.v1.1.2:#18Fixed bug when handling path that caused recursive directories.v1.1.1:#15Fixed bug when fetching reddit videos with expiry date.v1.1.0:#11redvid can now decide best quality according to given size.Added support for old reddit videos.Fixed bug where video qualities list can't be parsed.v1.0.9:#8Added the ability to disable logging.Maximum video size can be set.#9Maximum video duration can be set.v1.0.8:#7Fixed a bug with quality fetching.v1.0.7:download()will return file path again.v1.0.6:#5Can now download urls withv.reddit.itfromat.#4PATH can be choosed instead of current dir.#3Max/Min quality can be automatically set to skip quality query.Added ffmpeg encoding to videos with no sound to be uploadable on some platforms.Adjusted printed text and progress bars.Stargazers over timeContributingPlease contribute! If you want to fix a bug, suggest improvements, or add new features to the project, justopen an issueor send me a pull request.