Skip to main content

SE::Google::Translate - translator via Google service

Google Translate

Overview of the parser

Overview

A fast, multi-threaded text translator via the Google service, capable of up to 2600 requests per minute. This parser allows you to translate any volume of text in automatic mode, providing unique content for website population, social media posting, or any other resources. The parser automatically detects the source language of the content; you only need to specify the target language. Google translator is capable of processing colossal volumes of text while consuming minimal resources.

Collected data

  • Translated text
  • Source language
  • Source text in transliteration
  • Translated text in transliteration
  • Translation variants

Capabilities

  • Translation language selection
  • Automatic language detection

Use cases

  • Text translation
  • Obtaining diverse content in the required language for further use

Queries

Any text for translation should be specified as queries, for example:

A-Parser - a multi-threaded parser of search engines, site assessment services, keywords, content(text, links, random data) and much more(youtube, pictures, translators...). A-Parser combines over 60 parsers in total!

Output results examples

A-Parser supports flexible result formatting thanks to the built-in Template Toolkit, which allows it to output results in any form, as well as in structured formats like CSV or JSON.

Default output

Result format:

$query - $translated\n

Result example:

A-Parser - a multi-threaded parser of search engines, site assessment services, keywords, content(text, links, random data) and much more(youtube, pictures, translators...). A-Parser combines over 60 parsers in total! - A-Parser - multi-threaded parser of search engines, site assessment services, keywords, content (text, links, random data) and much more (youtube, pictures, translators ...). In total, A-Parser combines over 60 parsers!

Output only translated text

Result format:

$translated\n

Result example:

A-Parser - multi-threaded parser of search engines, site assessment services, keywords, content (text, links, random data) and much more (youtube, pictures, translators ...). In total, A-Parser combines over 60 parsers!

Output to CSV table

Result format:

[% tools.CSVline(query, detected, translated) %]

Result example:

"A-Parser - a multi-threaded parser of search engines, site assessment services, keywords, content(text, links, random data) and much more(youtube, pictures, translators...). A-Parser combines over 60 parsers in total!",en,"A-Parser - multi-threaded parser of search engines, site assessment services, keywords, content (text, links, random data) and much more (youtube, pictures, translators ...). In total, A-Parser combines over 60 parsers!"

Saving in SQL format

Result format:

[%  "INSERT INTO text VALUES('" _ query _ "', '";   detected _ "', '";  translated _ "')\n";  %]

Result example:

INSERT INTO text VALUES('A-Parser - a multi-threaded parser of search engines, site assessment services, keywords, content(text, links, random data) and much more(youtube, pictures, translators...). A-Parser combines over 60 parsers in total!', 'en', 'A-Parser - multi-threaded parser of search engines, site assessment services, keywords, content (text, links, random data) and much more (youtube, pictures, translators ...). In total, A-Parser combines over 60 parsers!')

Dump results to JSON

General output format:

[% IF notFirst;
",\n";
ELSE;
notFirst = 1;
END;

obj = {};
obj.query = query;
obj.detected = p1.detected;
obj.translated = p1.translated;

obj.json %]

Initial text:

[

Final text:

]

Result example:

[{"query":"A-Parser - a multi-threaded parser of search engines, site assessment services, keywords, content(text, links, random data) and much more(youtube, pictures, translators...). A-Parser combines over 60 parsers in total!","translated":"A-Parser - multi-threaded parser of search engines, site assessment services, keywords, content (text, links, random data) and much more (youtube, pictures, translators ...). In total, A-Parser combines over 60 parsers!","detected":"en"}]
tip

To make the "Initial text" and "Final text" options available in the Task Editor, you need to activate "More options".

Possible settings

ParameterDefault valueDescription
From languageAuto-DetectSelect which language to translate from; auto-detection is set by default
To languageEnglishSelect the target language for translation
Chrome HeadlessIf the option is enabled, the browser will not be displayed
DeviceDesktopSelect the output type (Desktop / Mobile)
Use sessions (for Mobile device only)Ability to disable the use of sessions for mobile devices