based.recipe - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
based.recipe (283B) | |
--- | |
1 #!/bin/sh | |
2 | |
3 baseuri="https://based.cooking/" | |
4 | |
5 hurl "${baseuri}" \ | |
6 | grep "^<li .*><a href=\".*\"" \ | |
7 | sed 's,.*a href="\(.*\)">\(.*\)</a></li>$,\1\t\2,g' \ | |
8 | shuf -n 1 \ | |
9 | while read -r htmluri recipename; | |
10 do | |
11 printf "%s ( %s%s )\n" "${recipename}" "${baseuri}" "${htmluri}" | |
12 done | |
13 |