Skip to content

Instantly share code, notes, and snippets.

@DataSolveProblems
Created June 17, 2019 07:25
Show Gist options
  • Save DataSolveProblems/fb05b9e8ec857bb7509c9f78e3ffc504 to your computer and use it in GitHub Desktop.
Save DataSolveProblems/fb05b9e8ec857bb7509c9f78e3ffc504 to your computer and use it in GitHub Desktop.
import os
from google.cloud import translate
import pandas as pd
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = r"<CLIENT_SECRET.json>"
translate_client = translate.Client()
result = translate_client.get_languages()
languageList = pd.DataFrame(result)
print(languageList)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment