Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Google translate(limited request solution)

I use a script involving googletrans==4.0.0-rc1, there is a problem with this package, which is limited requests.

My solution when I connect to SQL server is to create a flag column(what record has been translated and what hasn’t gone through translation), to translate new rows only and append rather than over writing.

Is there a solution where I can send thousands of records at once(I need it for a separate scenario).

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Unfortunately, the limitation on the number of requests you can make to the Google Translate API is set by Google and cannot be changed by the googletrans package.

However, there are a few things you can do to work around this limitation. One option is to use multiple API keys and rotate them as you make requests. Another option is to use a different translation service that does not have the same limitations.

Alternatively, if you need to translate thousands of records at once, you may want to consider using a batch translation service. These services are designed to handle large amounts of text and can translate thousands or even millions of records at once. Some examples of batch translation services include Microsoft Translator Hub, Amazon Translate, and Google Cloud Translation API.

Keep in mind that batch translation services may come with their own limitations and costs, so be sure to review the documentation and pricing before selecting a service.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading