sogou-scraper-pw
Scrape sogou tr using playwright
Installation
pip install -U sogou-scraper-pw
Usage
from pprint import pprint
from sogou_scraper_pw import sogou_tr
res = sogou_tr("test me\n test him")
pprint(res)
# '考验我\n测试他'
print(sogou_tr("test me", to_lang="de"))
# Mich auf die Probe stellen.