Download images from reddit
MIT License
Published by nikolajlauridsen over 6 years ago
Again a lot has happened, but the major addition in this release is the ratio cleaning functionality.
After all, images have been downloaded prawpapers will go through all the downloaded images and delete any images whose ratio doesn't match the minsize within a 5% margin, this margin can be changed by changing the rlock value.
If you wish to disable ratio clean simple set rlock to a value of 0.
Downloading by search term has also added, so if you want to download a lot of pictures of Nissan Silvia's you can simply launch prawpapers like this
py prawpapers -s Nissan -q Silvia
Prawpapers will then search the Nissan subreddit for 'Silvia' and download any images in the search result.
Published by nikolajlauridsen over 6 years ago
It's been way to long since a "release" and quite a bit has happened.
Published by nikolajlauridsen about 7 years ago
PRAW has been updated and the old version is incompatible with python 3.6, the downside to upgrading PRAW is that it's no longer possible to use it without registering an app on Reddit and adding a client_id and client_secret to the script.
This will be the final version not working on 3.6, but will also be the last version without client secret. If you don't want to go through the hassle, download this release and run it in python 3.6
Published by nikolajlauridsen over 7 years ago
The download progress has been multi-threaded which has reduced the running time of the script significantly 🎉.
Sadly however the script cannot be stopped once the downloading has begun anymore 😢, but I find it to be a fair trade off as of now considering the gained speed (I am however working towards making this work)
The script also tries to read the content type from the request headers now, and will display "No new images to download" instead of trying to download nothing.
You can customize how many threads the script runs with through config or with the -t keyword argument.
Published by nikolajlauridsen over 7 years ago
With the database being somewhat sensible it's time to make the first release
Do note that this release changes the database, which means a new database needs to be created, which prawpers does on its own.
Just follow install instructions in README.md and have fun