support mosnter manual
parent
d682f836b4
commit
c5d03aca6d
3
poc.sh
3
poc.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue