Downloads all sections of the online documentation available at https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-skills-kit-interface-reference and converts it to eBook.
pip3 install beautifulsoup4 requests
Install Pandoc using apt install pandoc
or brew install pandoc
or equivalent.
Run in a new directory:
python3 ask-doc-scrape.py
Convert it to EPUB using ebook-convert from Calibre:
ebook-convert toc.html ask-doc.epub --breadth-first --level1-toc '//*[@class="chapter-level1"]' --level2-toc '//*[@class="chapter-level2"]' --level3-toc '//*[@class="chapter-level3"]'
Or convert from HTML to EPUB using Pandoc:
pandoc -t epub3 --epub-metadata=metadata.xml --toc --toc-depth 1 -o ask-docs.epub article*.html
You can optionally convert it to Kindle format using Calibre or Kindlegen.