Convert xlsx to html via Python

I try to use same code from site , but I got html file and folder.
So if I want to export only 1 html file , How can I do in python?

import jpype
import asposecells
jpype.startJVM()
from asposecells.api import Workbook
workbook = Workbook(“input.xlsx”)
workbook.Save(“Output.html”)
jpype.shutdownJVM()

@Gungungungundam

Please try the option: HtmlSaveOptions.SaveAsSingleFile

Code:

import jpype
import asposecells
jpype.startJVM()
from asposecells.api import Workbook, HtmlSaveOptions

opt = HtmlSaveOptions()
opt.setSaveAsSingleFile(True)

wb = Workbook("input.xlsx")
wb.save("Output.html", opt)


jpype.shutdownJVM()

@Peyton.Xu

It work!! Thank you so much.

@Gungungungundam

I’m glad that your issue is sorted out. If you have any other queries, feel free to contact with us.