support mosnter manual
This commit is contained in:
3
poc.sh
3
poc.sh
@@ -11,6 +11,7 @@ main() {
|
||||
|
||||
#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/phb/credits | less
|
||||
@@ -141,6 +142,8 @@ html_to_markdown() {
|
||||
echo Introduction
|
||||
elif echo "$out" | grep '^##* Credits' &> /dev/null; then
|
||||
echo Credits
|
||||
elif echo "$out" | grep '^##* Monsters' &> /dev/null; then
|
||||
echo Monsters
|
||||
else
|
||||
log WARNING: NOTHING INDICITIVE OF TYPE OF CONTENT FOUND
|
||||
echo Chapter
|
||||
|
||||
Reference in New Issue
Block a user