Created
March 5, 2020 05:03
-
-
Save nephitejnf/f36365a52afbff30e15c0494409eb56d to your computer and use it in GitHub Desktop.
get a pic of a random waifu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
wget -O- "https://mywaifulist.moe/random" | hxnormalize -x | hxextract -x "meta" - | hxselect -s '\n' -i "::attr(content)" | grep -E '(jpeg|png|jpg)' | head -1 | cut -d '"' -f2 | wget -O waifu.png -i- | |
sxiv waifu.png | |
rm waifu.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment