A little python to parse Google Translate webpages
Project description
python-google-translate
A python module for Google Translate (without using the API)
This module lets you get two things:
- translate(text, destination_language, source_language)
Translates the given text into the chosen language.
text: The text to translate
destination_language: The language code (two letters) of the language you want to get.
source_language (default: auto): The language code (two letters) of the language the text is in. ('auto' detects automatically the language the text is in)
- detect_language(text, result_language)
Gives the language of the given text.
text: The text to check.
result_language: The language code (two letters) of the output language.
Installation
You can install python-google-translate via PIP
the Python Package Index Manager.
pip install python-google-translate
But you also need to install PhantomJS
On macOS, you can install it with Homebrew:
brew cask install phantomjs
Dependencies
This module has one python module dependency: Selenium, used to automate browsers which is downloaded when installing python-google-translate with PIP.
But you also need to install PhantomJS, a headless, lightweight browser which I use to get webpages as quick as possible.
Google Translate belongs to Google LLC, fully owned by Alphabet Inc.
© Anime no Sekai - 2020
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyGoogleTranslate-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91d3abe97c81983d48900fa201d41d024b341d1782bf785fad4b1c0d67e3073d |
|
MD5 | ef0fdd60950d3b124c3072cf98652803 |
|
BLAKE2b-256 | 68f102af1deab3f7ba099b8f5a8328b23a1b973b28bd80a10ca8c724d8de859c |