Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
iconfalse
titleThis page has been translated automatically

We want to provide you with the latest help content in your language as soon as possible. This page has been translated automatically and may contain grammatical errors or inaccuracies. We want this content to be useful to you. Please let us know at the bottom of this page if this information was helpful.

View the original article in Russian: Операции над профилем

Описание

Description

For working on the Internet, ZennoPoster has a special entity - Project Profile.

...

To configure the primary generation of a profile, you need to configure it in the static block → Profile: Profile ... In it, you can specify the profile language, gender, desired regions, as well as browser settings.

How

...

to add an action to a project?

Via the context menu Add actionDataOperations on profile

...

To view the current profile, you can click on the "Current profile" button at the top of the program interface. Read more about all profile settings here: Profile window

...

In the window that opens, you can familiarize yourself with the internal variables of the project, which will later be used when executing the project. Most of the data contained in it you can change using the "Reassign fields".

...

Окно профиля

How to work with an action?

...

After registering on the resource or after other actions on the site performed within inside the template, you can save the profile data for later use in other projects. The profile file (* .zpprofile) stores all instance data: cookies, User Agent, computer data generated for the instance, first name, last name, login, city, etc.

...

Note

Be careful with the

...

Save

...

Variablescheckbox. If you saved a profile with this option, then the next time it is loaded, the values of the selected variables will be overwritten.

...

For the correct execution of the template, save only the necessary variables. However, you can always select “All” from the dropdown list.

...

When the checkbox “Create missing variables” is checked, missing variables will be automatically created and added in your project, which are listed in the profile. This is useful when you want to add a profile to a project that was saved while another was working.

...

Profile update

Info

Available in ZennoPoster starting from version 7.3.1.0.

The new action will update the current profile with a similar profile with the latest version of the browser.

...

The search is performed by the project filter and the correspondence of the new profile to the following parameters of the current profile: browser type, OS, platform, language and screen resolution.

The action not only updates the latest version of the browser, but completely replaces the profile with the found one (all parameters will be new, except for those that were searched for).

ZennoPoster can load up to 4000 profiles to find a suitable one (it makes no sense to load anymore, since the server generates 4000 profiles per day), ProjectMaker - 400.

...

Reassigning fields

You can manually edit the components of the profile. For some data, you can set the value you need, and for others, regenerate.

...

In further work, you can use the data from the profile in other actions, for example, in the cube Word processing ... To do this, use macros from environment variables , for example:

Code Block
{-Profile.Name}

...

Info

You just need to write the snippet {-Profile. and ProjectMaker will offer you all possible choices in a dropdown list.

...

Save profile folder

Info

Available in ZennoPoster version 7.3.1.0 and higher.

...

In ZennoPoster 7.3.1.0 a profile-folder has been added, you can read more about it in the article Using the profile-folder

With this function you can save it.

Also, along with the profile folder, you can save the current proxy of the project and / or variables (all or some)

Note

Saving a profile folder is a resource-intensive operation and can greatly slow down a project, especially in multi-threaded work. It is not recommended to call save often. Best Places to Call - Good End and Bad End

...

Possible practical application

...

The OldSubcribers variable contains the number of subscribers that we got when the template was running.

The PhoneNum variable contains the phone number associated with the account.

...

We save our profile and specify the desired variables to save.

...

Tip

Starting from version 7.3.1.0, saving a profile is easier and more logical when working with a profile-folder.

Because we do not need token and UserNameLastSub variables for one reason or another, we do not save them.

Later we can use the “Loading profile” and get the necessary variables, then we use them for personal logging of actions. Create an action Alert and specify the following text there:

Code Block
ЗагруженProfile профильloaded.
ИмяProfile профиляname: {-Profile.Name-};
ПоследняяProfile активностьlast профиляactivity: {-Variable.LastActivity-};
Количество подписчиков после предыдущей проверки
The number of subscribers after the previous check: {-Variable.OldSubcribers-};
НомерPhone телефонаnumber: {-Variable.PhoneNum-}.

Several macros are used in it: {-Profile.Name-} - profile name, {-Variable.LastActivity-} , {-Variable.OldSubcribers-} , {-Variable.PhoneNum-} - variables LastActivity , OldSubcribers , PhoneNum, respectively. At the output, we get the following text in the log:

...