Skip to main content

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

Google Translate

Scraper overview

Scraper overview

Fast, up to 2600 requests per minute, multithreaded text translator via the Google service. This scraper allows you to translate any volume of text in automatic mode, so you get unique content for website population, social media posting, or filling any other resources. The scraper automatically detects the source language of the content; you only need to specify the target language. Google translator is capable of processing colossal amounts 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 various 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 results 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 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! - 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 only translated text

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 to CSV table

Result format:

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

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!",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 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!', '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

Common result 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 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!","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 "Prepend text" and "Append text" options available in the Task Editor, you need to activate "More options".

Possible settings

ParameterDefault valueDescription
From languageAuto-DetectSelect the language to translate from; auto-detection is set by default
To languageEnglishSelect the language to translate into
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