Skip to main content

SE::Google::Translate - Translator via Google Service

Google Translate

Overview of the scraper

Overview of the scraper

Fast, up to 2600 queries per minute, multi-threaded text translator via the Google service. This scraper allows translating any volume of texts automatically, so you get unique content for filling sites, posting on social networks, or for filling any other resources. The scraper automatically detects the source language of the content; you only need to specify the language for the results. Google translator can handle colossal volumes of text without consuming many resources.

Data collected

  • Translated text
  • Source text language
  • Source text transliterated
  • Translated text transliterated
  • Translation options

Capabilities

  • Selection of translation language
  • Automatic language detection

Use cases

  • Text translation
  • Obtaining various content in the desired language for further use

Queries

As queries, you must specify any text for translation, 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 output formatting thanks to the built-in templating engine Template Toolkit, which allows it to output results in any form, as well as in structured form, for example 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 - a multi-threaded scraper 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 translated text only

Result format:

$translated\n

Result example:

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

Output in 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 - a multi-threaded scraper of search engines, site assessment services, keywords, content (text, links, random data) and much more (youtube, pictures, translators...). A-Parser combines over 60 scrapers in total!"

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 - a multi-threaded scraper of search engines, site assessment services, keywords, content (text, links, random data) and much more (youtube, pictures, translators...). A-Parser combines over 60 scrapers in total!')

Dump results to JSON

Общий формат результата:

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

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

obj.json %]

Начальный текст:

[

Конечный текст:

]

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 - a multi-threaded scraper of search engines, site assessment services, keywords, content (text, links, random data) and much more (youtube, pictures, translators...). A-Parser combines over 60 scrapers in total!","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-DetectSelection of which language to translate text from, auto-detection by default
To languageEnglishSelection of the language to translate to
Chrome HeadlessIf the option is enabled, the browser will not be displayed
DeviceDesktopSelection of output type (Desktop / Mobile)
Use sessions (for Mobile device only)Option to disable the use of sessions for mobile devices