Skip to content

Translate words using Google Translate via Selenium, to have the ability of translating lots of words one after the other, unlike the translate module.

Notifications You must be signed in to change notification settings

DragonTechRoyale/Translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translate

Usage:

import Translate

translator = Translate.Translate()  # initialize - passing False as an argument will keep the window open
target_langage = "Japanese"  # langauge we're translating from
native_langauge = "English"  # langauge we're translating to
word_to_translate = "絶対"
translated_word = translator.translate(target_langage, native_langauge, word_to_translate)
print(translated_word)  # print's the translation of "絶対" - which is "absolutely" according to Google Translate
translator.exit()  # closes the translator window (it's hidden but still good to close it)

About

Translate words using Google Translate via Selenium, to have the ability of translating lots of words one after the other, unlike the translate module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages