This is the Web Scraper for the website https://alpha.wallhaven.cc .
It asks the user for a search tag on the basis of which it searchs for wallpapers on the above mentioned website.
After the user enters his choice of genre of wallapers, the program searches for wallpapers related to that genre and then downloads it into the directory /home/$USERNAME/images
and then the downloaded image will be used as bootloader wallpaper.
The user needs to edit the grub file to make this program fully functional.
-
Edit the file
/etc/default/grub
and add the following line to it, replacing $USERNAME with your username.export GRUB_MENU_PICTURE = "/home/$USERNAME/images/grub.jpg"
-
On execution, the program will then copy the downloaded image into the folder in
/home/$USERNAME/images
and rename it togrub.jpg
, so that it will be shown as the grub menu background.
Other than Python3.x, you'll require the following libraries:
- click
- bs4
- requests
- random
-
Clone the repository to your machine.
-
Open your terminal and change directory to your cloned folder.
-
Enter the command
$ pip3 install --editable .
to install all dependcies. -
Now run the program using
$ grubwallpaper