10 Commits

Author SHA1 Message Date
Tempest042
e4f2a78f8c Removed Private API Key
Removed Private API Key
2019-07-18 10:55:20 +10:00
Tempest042
9c4fdf121d Updates to work with Wallhaven Post Alpha
Wallhaven recently came out of aplha, making many changes to their website.

I've updated the scraper to make it work again.
This Rewrites part of the script to work with the new API.
Currently the only way to get NSFW images in search results is to use the API access along with an API Key.
The updated scraper now uses the API to load the search results page / categories page/ lastest page.
Users dont require API access to view full resolution NSFW Images, so we can access all the images through the original method.
We use the original method grab the Full Resoultion Photo, except this time we have the actual image path so we dont need to guess the file extension.

The API requires an API key which you can get by creating a Wallhaven Account. The API Key is under User Menu->Settings->Account.
Instead of showing the lastest page it will now show the toplist page for the past month as we cant access the lastest page with the API.

The API is limited to 45 calls per minute, but as we only call the API to load new pages (of 24 images) and not to download the actual images, this should limit should never be reached.
2019-06-11 00:30:40 +10:00
Ernest Borowski
156e21d403 Improve script performance & code readability 2018-06-20 00:25:44 +02:00
Guillaume Briot
1aec85065f Added currentImage/totalImage 2017-06-04 16:10:14 +02:00
Guillaume Briot
e4593a2673 Added check if file exist 2017-06-04 12:50:25 +02:00
bafoed
8e77b9e74f Added ability to download images from search. 2016-12-17 09:57:58 +03:00
bafoed
e86ec7223b Fixed bug with extension guessing. 2016-12-17 09:56:34 +03:00
Imre Kerr
70803850de Allow downloading of nsfw (not sketchy) images 2016-06-29 15:41:44 +02:00
Saurabh Bhan
27be491e50 Updated with Categories and Purity options 2016-06-29 13:57:36 +05:30
Saurabh Bhan
45d34ee2fe Update and rename wallpy.py to wallhaven-dl.py 2016-06-28 12:34:01 +05:30