pjamar/htmls-to-datasette — reverse-engineered prompt
Reverse engineered prompt
Build me a simple Python command line tool for keeping a personal archive of saved web pages. I want to point it at one or more folders full of saved HTML or HTM files, and have it create a SQLite database that Datasette can serve.
The tool should index the page contents so I can search across all my saved articles later. By default it can create a database called htmlstore.db. It should be safe to run again when new files are added. I also want an option to either store the actual HTML inside the database, so everything is in one file, or just store the file location and serve the page from disk.
Please include a small example server setup that shows how to run Datasette, search the archive, and click a result to view the saved HTML page. Add clear help text for the commands and basic setup instructions. Look up current Datasette docs online if needed.
Want more depth? Deep Reverse