searches and pulls waifus from waifu.im
before you run the script, make sure you have curl and jq installed.
two versions:
- will open the image in your browser
- will both download the image to a folder named "homework" (in your downloads folder) AND open it in your broswer
VALID TAGS: waifu, maid, marin-kitagawa, mori-calliope, raiden-shogun, oppai, selfies, uniform
(check waifu.im for the "other" tags)
it will only work with one tag at a time, more than one just breaks it.
-
if the image does not open in the correct app, it might be because your OS does not open images in your browser by default. to fix this, just go to your file manager app, right click a random image, and open it with whatever browser you have. should work fine after this. if you have another image opener you wanna use, just replace the "xdg-open" line in the code with whatever your opener is.
-
if (when you try to run it) it says something along the lines of "command not found", you have to make the file executable. you can do this by either running "chmod +x filename.sh" or by doing it in the "permissions" tab of your file manager (when you right click on the file).
if you don't like the waifu.im api, I'm going to make a new one using the waifu.pics api.