# Wallhaven-dl

## UPDATE
###The script now comes with a search functionality, you can now search and download wallpapers from the command line.

---------------------------------------------------------------------

A wallhaven scraper which downloads all the wallpapers from the first page of [alpha.wallhaven.cc](http://alpha.wallhaven.cc/)

This Script now comes with categories and purity sort support.
###### NOTE- Downloading NSFW images require a [Wallhaven Account](https://alpha.wallhaven.cc/user/create)


![](https://raw.githubusercontent.com/GeekSpin/Wallhaven-dl/master/Images/wallhaven-dl%20(1).gif)

## How to use:
  
  1. Download the wallhaven-dl.py
  2. Move wallhaven-dl.py to the folder in which you want wallpapers to download.
  3. run script 
  4. It'll ask you to choose a category, download the latest wallpapers or search, choose as per desired.
  5. enjoy!
```
$ python3 wallhaven-dl.py
```

## Dependencies:
  
  This project depends on BeautifulSoup, Requests, tqdm, lxml
  Your can install install the dependencies using the requirements.txt file and running
  ```
  $ pip3 install -r requirements.txt
  ```
  


Wallhaven-dl © 2016, Saurabh Bhan. Released under the [MIT License](https://raw.githubusercontent.com/GeekSpin/Wallhaven-scraper/master/LICENSE).
