I created this tool to help me generate sitemaps for websites that didn't have them, as part of a larger piece of reporting work I am doing to record the accessibility issues of various websites at my current day job. As a fun extra, I added the ability to archive all pages of a given website in HTML format as well.
To run Sikemap, simple run it with npx sikemap https://example.com --max 400 --output urls.txt
to execute. The max flag is for the maximum number of URLs to capture in your sitemap (by default it is 400), and the output flag specifies what you want to call your text list of URLs.
Once you have generated your list of URLs, you can then archive the website via the archive flag using npx sikemap --archive urls.txt
.