Python script that reads the iCloud tab database on macOS and pulls open tabs into an HTML Bookmark file. The output HTML file (YYYY-DD-MM-HH.MM-iCloudTabs.html) is saved to the user's home directory. PyCloudTabs only works on macOS.
The documentation on the Netscape Bookmark File Format can be found here.