SE::Yandex::Balaboba - Balaboba text parser

Overview of the parser
SE::Yandex::Balaboba - a parser for texts from Balaboba.Retrieves texts from the service of the same name.
You can use automatic query multiplication, substitution of subqueries from files, iteration of alphanumeric combinations and lists to obtain the maximum possible number of results.
A-Parser functionality allows you to save parsing settings for the SE::Yandex::Balaboba parser for future use (presets), set a parsing schedule, and much more.
Saving results is possible in the form and structure you need, thanks to the built-in powerful Template Toolkit template engine, which allows you to apply additional logic to the results and output data in various formats, including JSON, SQL, and CSV.
Collected data
- Generated text
- Style used to generate the text
- Link to the image
Capabilities
- Parse unique texts with the ability to choose the text style (Style parameter):
Recipes (RU),Short stories (RU),Recipies (EN)and others - Select a style number that can be seen in the browser and parse with the desired text style if it is not in the style selection option (ID of custom style parameter)
Use cases
- Mass collection of unique texts
Queries
As queries, you must specify the phrases from which the generation will begin, for example:
Once upon a time
Query substitutions
You can use built-in macros for automatic substitution of subqueries from files, for example, we want to add a list of other words to each query, let's specify several main queries:
Once upon a time
Fantasy
Tower defense
In the query format, we will specify a macro for substituting additional words from the keywords.txt file; this method allows you to increase the variability of queries many times over:
{subs:keywords} $query
This macro will create as many additional queries as there are in the file for each original search query, which in total will give [number of original queries] x [number of queries in the Keywords file] = [total number of queries] as a result of the macro.
For example, if the keywords.txt file contains:
free
online
As a result, the substitution macro will turn 3 main queries into 6:
free fantasy
online fantasy
free tower defense
online tower defense
free rpg
online rpg
Output results examples
A-Parser supports flexible result formatting thanks to the built-in Template Toolkit template engine, which allows it to output results in an arbitrary form, as well as in a structured one, such as CSV or JSON
Default output
Result format:
$style: $text\n
Example result:
Without style (RU): Once upon a time there were three little pigs, three brothers.
And each of them had a house.
They were very friendly pigs.
They helped each other in everything, and if something happened to one of them, the other brother always came to the rescue.
One day it started snowing heavily, and the brothers decided to hide from it in their houses.
But then a gray wolf came around the corner.
He was hungry and saw that there were no doors in the houses.
Then the wolf decided to go into the first house and eat the pig.
The wolf quickly opened the door and looked inside.
Possible settings
| Parameter | Default value | Description |
|---|---|---|
| Style | Random (All languages) | Text style selection |
| ID of custom style | Set style number for text generation | |
| Repeat if Balaboba reports about error | ☑ | Retry parsing if Balaboba showed an error message |
| Repeat if Balaboba reports about bad query | ☑ | Retry parsing if Balaboba showed a message due to an invalid query |