support mosnter manual

master
Bel LaPointe 2021-12-15 08:23:59 -07:00
parent d682f836b4
commit c5d03aca6d
1 changed files with 3 additions and 0 deletions

3
poc.sh
View File

@ -11,6 +11,7 @@ main() {
#set -x #set -x
#scrape_book_chapter https://www.dndbeyond.com/sources/mm/monsters-e
#scrape_book_chapter https://www.dndbeyond.com/compendium/rules/dmg/appendix-b-monster-lists #scrape_book_chapter https://www.dndbeyond.com/compendium/rules/dmg/appendix-b-monster-lists
#scrape_book_chapter https://www.dndbeyond.com/compendium/rules/phb/credits | less #scrape_book_chapter https://www.dndbeyond.com/compendium/rules/phb/credits | less
@ -141,6 +142,8 @@ html_to_markdown() {
echo Introduction echo Introduction
elif echo "$out" | grep '^##* Credits' &> /dev/null; then elif echo "$out" | grep '^##* Credits' &> /dev/null; then
echo Credits echo Credits
elif echo "$out" | grep '^##* Monsters' &> /dev/null; then
echo Monsters
else else
log WARNING: NOTHING INDICITIVE OF TYPE OF CONTENT FOUND log WARNING: NOTHING INDICITIVE OF TYPE OF CONTENT FOUND
echo Chapter echo Chapter