googletrans

How to tell Googletrans to ignore certain parts?

How to tell Googletrans to ignore certain parts? Question: I would like to use googletrans to make use of the Google translate API. However, there are strings where are variable names in it: User “%(first_name)s %(last_name)s (%(email)s)” has been deleted. If I use this via googletrans I get from googletrans import Translator translator = Translator() …

Total answers: 2

JSONDecodeError: using googletrans module

JSONDecodeError: using googletrans module Question: I’m trying to translate 100,000 English words to Korean by using ‘googletrans’ module. But after some iteration, it raises ‘JSONDecodeError: Expecting value: line 1 column 1 (char 0)’. I tried to figure it out, but solutions on the web didn’t work for me. What I’ve tried is Re-initializing Translator() every …

Total answers: 2

GoogleTrans API Error – Expecting value: line 1 column 1 (char 0)

GoogleTrans API Error – Expecting value: line 1 column 1 (char 0) Question: I am having this error when translating thousands of text data in an iteration: Expecting value: line 1 column 1 (char 0) My code for translating big amounts of text: translatedList = [] for index, row in df.iterrows(): newrow = copy.deepcopy(row) try: …

Total answers: 11

Python googletrans

Python googletrans Question: I just came across googletrans python package. This package translates quite well and seems to use google translation API. To my knowledge, google translation API is not free. What googletrans doing internally for the translations? Is it legal to use googletrans? Asked By: FIre Panda || Source Answers: The official documentation has …

Total answers: 1