vgalin / html2image

A package acting as a wrapper around the headless mode of existing web browsers to generate images from URLs and from HTML+CSS strings or files.
MIT License
344 stars 44 forks source link

[Bug] Unable to Use Command hti -U #156

Closed PencilMario closed 4 days ago

PencilMario commented 2 weeks ago
D:\Windows\Download>hti -U https://www.google.com.hk/
Traceback (most recent call last):
  File "C:\Users\Administrator.DESKTOP-465SP1L\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Administrator.DESKTOP-465SP1L\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\Administrator.DESKTOP-465SP1L\AppData\Local\Programs\Python\Python310\Scripts\hti.exe\__main__.py", line 7, in <module>
  File "C:\Users\Administrator.DESKTOP-465SP1L\AppData\Local\Programs\Python\Python310\lib\site-packages\html2image\cli.py", line 66, in main
    paths = hti.screenshot(
TypeError: Html2Image.screenshot() got an unexpected keyword argument 'browser_executable'