DownloadRedditImages
ved Reliability, Better Codebase
このスクリプトの使用:
ファイルをダウンロードしてファイルを実行するだけです - 何もセットアップする必要はありません!
ターミナル経由でダウンロードするには:
git clone https://github.com/tsarjak/WallpapersFromReddit.git
# Next step is Fully Optional - to use tqdm progress bar. Without this, native progress bar will show up with exact same features, just a little less pretty.
pip install tqdmターミナル:
# In the Home Directory or the Directory in which you cloned/downloaded the script
cd ~ /DownloadRedditImages
python download.py
--subreddit < your choice of subreddit >
--sort_type < hot | new | rising | top >
--sort_time < all | year | month | week | day >
--download_dir < Directory where you want to store the images. For Max/Linux, the script can identify home directory and sets a RedditMedia folder there. For Windows, a path MUST be provided >
--max_post_downloads < Maximum number of posts media to download. Default= 10>
--max_simultaneous_downloads < Maximum number of simultaneous downloads to run using multiple CPU cores. Default=16. >
--max_trials < Maximum number of trials to fetch subreddit data. Sometimes the response is slow and multiple attempts are needed. Default=20. > python download.py --subreddit pics --sort_type top --sort_time all --max_post_downloads 40 --download_dir /Users/user_me/Pictures/RedditMedia/
# This will download top 50 posts of all time from earthporn subreddit to /Users/user_me/Pictures/RedditMedia folder.

hotだけがサポートされていましたが、今ではhot, top, new, controversialがサポートされています。dayだけがサポートされていましたが、今ではday, week, month, year, allサポートされています。downloadDitimages v2.0.0 -https://github.com/tsarjak/wallpapersfromreddit/releases/tag/v2.0.0