ffreemt / deepl-scraper-playwright

Scrape deepl using playwright
MIT License
9 stars 0 forks source link

Text after "/" is not translated #2

Open ElornMarsk opened 1 year ago

ElornMarsk commented 1 year ago

I didn't immediately notice that any text after "/" would not be translated. Example:

pprint(deepl_tr('''I love my cats/dogs, test test test''', from_lang='en', to_lang='de'))
# > 'Ich liebe meine Katzen'
ffreemt commented 1 year ago

Thanks for spotting the flaw. I'll take a look and try to fix it..

fortyfourforty commented 1 year ago

Still looking for a valid fix for the mentioned issue. I'm using the deepl-scraper-pyppeteer2 though. It's the only working deepl translate module that can run on colab without api.