Skip to content

Examle not working #2

@madamadami

Description

@madamadami

I installed everything as described, but if I run the example, I get this message:

(venv) admin@mac examples % python3 converter.py https://pythonbasics.org pb.pdf

Traceback (most recent call last):
  File "converter.py", line 10, in <module>
    result = get_pdf_from_html(sys.argv[1], chromedriver='../chromedriver')
  File "../sample/html_to_pdf_converter.py", line 30, in get_pdf_from_html
    result = send_devtools(driver, "Page.printToPDF", calculated_print_options)
  File "../sample/html_to_pdf_converter.py", line 11, in send_devtools
    if response['status']:
KeyError: 'status'

Could someone help me by solving this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions