Skip to content

html2text.html2text() method is not callable  #138

@dhruv-scogo

Description

@dhruv-scogo

For my basic python code to text the library :

import html2text

output = html2text.html2text(
    '''<p>Hello, world.</p>'''
)
print(output)

I got the error shown below

  File "C:\Users\DHRUV PATEL\Desktop\Scraping\Markdown\demo.py", line 3, in <module>
    output = html2text.html2text(
             ^^^^^^^^^^^^^^^^^^^^
TypeError: 'module' object is not callable

Pls help me resolve the error

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