Use the Google API Client:
from googleapiclient.discovery import build
service = build('translate', 'v2', developerKey=APIKEY)
use the service
inputs = text_file.readlines()
outputs = service.translations().li
#outputs['translations']): #discovery #output['translatedtext'])) #{1}" #input
https://stackoverflow.com/questions/6... https://stackoverflow.com/questions/6...