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得到了支持。downloadredditimages v2.0.0 -https://github.com/tsarjak/wallpapersfromreddit/releases/tag/v2.0.0