waifu-gen - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- waifu-gen (490B) --- 1 #!/bin/sh 2 3 page=$(hurl https://www.thiswaifudoesnotexist.net/) 4 totalimages=$(printf "%s\n" "$page" \ 5 | grep "var totalImages" \ 6 | sed 's,.*= \([^;]*\);,\1,') 7 totaltexts=$(printf "%s\n" "$page" \ 8 | grep "var totalTexts" \ 9 | sed 's,.*= \([^;]*\);,\1,') 10 11 randimg=$(shuf -i 1-"$totalimages" -n 1) 12 randtext=$(shuf -i 1-"$totaltexts" -n 1) 13 14 printf "https://www.thiswaifudoesnotexist.net/example-%s.jpg " "$randimg" 15 printf "https://www.thiswaifudoesnotexist.net/snippet-%s.txt\n" "$randtext" 16