UlionTse / translators

🌏🌍🌎Translators🌎🌍🌏 is a library that aims to bring free, multiple, enjoyable translations to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
https://pypi.org/project/translators/
GNU General Public License v3.0
1.62k stars 189 forks source link

[Feature]: Translation services (eg Bing) easily rate limited #143

Closed Cabu closed 11 months ago

Cabu commented 11 months ago

Expect to happened

When translating a bunch of HTML pages with translate_html(), Bing is very quickly in Error due to rate limitation.

1) Would it be possible to set default rate limits for the different providers? 2) Would it be possible if no provider is set to dispatch the translation requests on multiple providers allowing the translation (from->to) allowing better throughput while reducing the rate on each of them.

Expected APP Version

a future version

Expected Python Version

=3.8 (Default)

Expected Runtime Environment

NoArch (Default)

Country/Region

Any

Expected Output

No response

Code of Conduct

UlionTse commented 11 months ago

@Cabu The part2 of https://github.com/UlionTse/translators/issues/109#issuecomment-1427993673