Simple java application to download images from reddit posts.
If you want an alternative for bash, here you go:
wget -q -O - https://www.reddit.com/r/EarthPorn/top.json |grep -o -e '"url": "[^\"]*.[jpg|png]"'|awk -F: '{print $2":"$3}'|xargs wget
Make sure you have Maven installed. Then run the following command in the repository directory:
mvn clean package
After compiling, run the application as follows:
java -jar target\reddit-wallpaper-downloader-jar-with-dependencies.jar C:\Path\To\Your\Picture\Directory https://www.reddit.com/r/EarthPorn