Skip to main content

DeepL::Translator - Text translator via the www.deepl.com service

DeepL Translator

Overview of the scraper

Fast, up to 1600 requests per minute, multithreaded text translator via the Deepl service. This scraper allows you to translate any amount of text automatically, so you get unique content for filling sites, posting to 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 of the results. Deepl translator can handle colossal volumes of text without consuming many resources.

Overview of the scraper

Data collected

  • Translated text
  • Source text language

Capabilities

  • Selection of translation language
  • Automatic language detection

Use Cases

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

Queries

You need to specify any text for translation 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 templating engine Template Toolkit, which allows it to output results in arbitrary form, as well as in a structured format, such as CSV or JSON

Default output

Result format:

$query - $translated\n

Example result displaying the source text and the translation into the selected language:

A-Parser is a multithreaded parser of search engines, site evaluation services, keywords, content (text, links, random data) and much more (youtube, pictures, translators...). In total, A-Parser combines more than 60 parsers! - A-Parser - A multithreaded scraper of search engines, site evaluation services, keywords, content (text, links, random data) and much more (youtube, images, translators...). In total, A-Parser combines more than 60 scrapers!

Output of the query, detected language, and translated text to a CSV table

Result format:

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

Example result:

"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-Parser is a multithreaded parser of search engines, site evaluation services, keywords, content (text, links, random data) and much more (youtube, pictures, translators...). In total, A-Parser combines more than 60 parsers!"

Saving in SQL format

Result format:

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

Example result:

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-Parser is a multithreaded parser of search engines, site evaluation services, keywords, content (text, links, random data) and much more (youtube, pictures, translators...). In total, A-Parser combines more than 60 parsers!')

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 %]

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

[

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

]

Example result:

[{"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-Parser is a multithreaded parser of search engines, site evaluation services, keywords, content (text, links, random data) and much more (youtube, pictures, translators...). In total, A-Parser combines more than 60 parsers!","detected":"EN"}]
tip

For the "Initial text" and "Final text" options to be available in the Job Editor, you need to activate "More options".

Possible settings

ParameterDefault valueDescription
From languageAuto-DetectSelect the language from which to translate the text; automatic detection is set by default
To languageEnglishSelect the language into which the translation should be performed