List processing
Please read the Terms of Use for Materials on ZennoLab
Table of contents
Description
Lists are mainly used to get lines of data from a text document or data records to a file. For example, you have a file with a list of URLs and you need to access them one by one, or you parse some values from the site and need to sort them, delete duplicates and save them to a file (for example, parsed e-mail addresses).
How to add a list to a project?
Before starting work, you need to create a List .
How to add an action to a project?
Via the context menu Add action β Lists β List processing
Or use smart search .
What is it used for?
Adding and Retrieving List Items
Removing lines and takes
Linking to a file
Getting the number of lines
Mixing
Sorting values
How to work with an action?
Select a sublist
Select part of the lines from the list.
We select the list with which we will work.
We indicate the function.
We indicate where the result will be saved.
Sublist filtering method
a) Range - set the interval of lines to be selected.
b) Elements without text - will select all lines that do not contain the specified text, you can use variables.
c) Elements that do not match the regular expression are - search criteria using the regular expression.
d) Elements containing text - will select values that contain the required text, you can use variables.
e) Elements matching a regular expression are search criteria using a regular expression.This field specifies the value corresponding to the item from step 4.
Lines that match the search criteria will be deleted.
If the list is empty, Zennoposter will follow the red line.
Add data from the list
Adding data from one list to another.
Choose a list with which we will work
Installing the function.
We indicate where the lines will be wrapped from.
In which position the result is placed - go back to the start , go to the end , to position.
If you have chosen to position, then indicate the line number or variable.
The lines are copied but not removed from the specified list.
Add line
Adding a line to the list.
Choose a list with which we will work
Installing the function.
We introduce a value or a variable.
In which position the result is placed - go back to the start , go to the end , to position.
If you have chosen to position, then indicate the line number or variable.
Add text
Adding text to the list.
Choose a list with which we will work
Installing the function.
The text or character set to add to the list, you can specify a variable.
In which position the result is placed - go back to the start , go to the end , to position.
Add blank lines if there is no text.
Merge list items
Combining list items with a delimiter and the ability to write to a variable.
Choose a list with which we will work
Installing the function.
Line separator
a) New line - each element of the list will be written on a new line.
b) Custom - specify your text or characters that will be inserted between the lines.
c) Specified in the list - the separator from the list settings is used.Variable for writing data after processing.
Shuffle elements of the list
Arrangement of items in the list in random order.
Choose a list with which we will work
Installing the function.
Get the number of lines
Getting the number of lines in the list.
Choose a list with which we will work
Installing the function.
Search criteria (you can specify a variable):
a) All
b) Not containing text
c) Not matching regex
d) With value
e) Containing text
f) Matching regexVariable for writing data after processing.
Get line
Getting a line with the ability to remove it from the list and write it to a variable.
Choose a list with which we will work
Installing the function.
Line criteria (you can specify a variable):
a) Does not contain text
b) Not matching regex
c) First
d) By number
e) Random
f) Matching regexDelete line after taking
Put to variable.
Bind to the file
Linking the list to a file during project execution.
Choose a list with which we will work
Installing the function.
Select a file or specify a variable containing the path to the file.
If the file is missing in the specified path, Zennoposter will automatically create it.
Sort
Sort the list items in descending or ascending order.
Choose a list with which we will work
Installing the function.
Use the principle like numbers.
We set the type of sorting in descending or ascending order .
Save to file
Choose a list with which we will work
Installing the function.
Set the separator (you can use variables):
a) New line
b) Custom
c) Specified in the listSelect a file or specify a variable containing the path to the file.
The checkbox allows you to write new data to the file or overwrite it completely.
Remove duplicates
Removing duplicate lines in the list.
Choose a list with which we will work
Installing the function.
Delete lines
Removing lines from a list with specified criteria
Choose a list with which we will work
Installing the function.
Criteria for deleting lines (you can use variables):
a) All
b) Not containing text
c) Not matching regex
d) First
e) By numbers ( ranges can be used)
f) With value
g) Containing text
h) Containing only space symbols
i) Matching regex
Β
Usage example
Let's imagine that you need to go through all the pages from the list, collect their names and put them in another list.
Create a List _1 with pages having previously linked it to the file.
We remove duplicates so as not to go to the page twice.
Create and link to the List _2.
Parse the necessary information from the pages to List _2.
Delete duplicates.
Thus, you can generate lists of necessary information for further processing or use.