mouuff / mtranslate

A simple api for google translate
MIT License
286 stars 83 forks source link

Bug fix: html.parser was not working #20

Closed ehanhalici closed 3 years ago

ehanhalici commented 3 years ago

html.parser was not working.

python version = 3.9.1

output = Traceback (most recent call last): File "/home/d.py", line 3, in ret = mtranslate.translate("hello","tr","en") File "/home/mtranslate/core.py", line 87, in translate result = unescape(re_result[0]) File "/home/mtranslate/core.py", line 57, in unescape return (parser.unescape(text)) AttributeError: 'HTMLParser' object has no attribute 'unescape'

mouuff commented 3 years ago

Thank you for your contribution !

ehanhalici commented 3 years ago

You're welcome