Site icon OwenDevs

Python Script to Generate File Index

A potential client said they wanted a system to track sales and expenses. I remembered seeing an open-source point-of-sale system available through Softaculous (the guys who offer a tool to install various applications in hosting accounts). So I went to my hosting account and indeed, there it was. In fact, I had installed it on my account a while back.

However, there was no manual provided by the makers of the software. I Googled and found that some other people had also faced this problem and had written a manual and even created a website for the manual. The manual was organised into a number of different pages, perhaps partly to maximise advertisement revenue. I downloaded these pages onto my computer.

Now I wanted an easy way to access each page. I remembered I had a Python script that generates an index page for existing HTML files. I copied that script and modified it, since it had been written (by ChatGPT and me) for a specific use case. I made it more general-purpose.

You can get the Python script here: https://github.com/owentechke/generateindex/

Exit mobile version