Skip to main content

DeepL::Translator - text translation via www.deepl.com

DeepL Translator

Scraper overview

A fast, multithreaded text translator using the Deepl service, capable of up to 1600 requests per minute. This scraper 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 scraper automatically detects the source language of the content; you only need to specify the target language. Deepl translator is capable of processing colossal amounts of text while consuming minimal resources.

Scraper overview

Collected data

  • Translated text
  • Source text language

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

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

A-Parser is a multithreaded scraper 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 scrapers! - A-Parser is a multithreaded scraper 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 scrapers!

Outputting query, detected language, and translated text to a CSV table

Result format:

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

Example result:

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

Example result:

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!')

Dumping 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:

]

Example result:

[{"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-DetectSelection of the language to translate from; auto-detection is set by default
To languageEnglishSelection of the language to translate into