Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
panelIconIdatlassian-info
iconpanelIconfalse:info:
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: Парсить данные

...

bgColor#E3FCEF

Please read the Terms of Use for Materials on ZennoLab

Table of contents

Expand
titleClick here to expand the table of contents
Table of Contents
minLevel1
maxLevel7
exclude^Оглавление$

...

Description

Armed with ZennoPoster, there are many useful tools for analysis and data collection. One of them is " Data parsing Parse data ", in which, without special knowledge, with a slight movement of your hand, with a minimum number of mouse clicks, in a matter of instant, you can set up the collection of the data you are interested in from the current page.

...

In the context menu of the " Element tree " → item " Parse data "Image Removed

...

Detailed parsing of the

...

“Parse data” panel

...

This window is logically divided into 2 parts:

  1. Quick search

  2. Advanced search (with additional settings)

Quick search

How

...

many elements to search?

One or many objects.

What to take?

  • Text is the visible representation of the object.

  • Links (from English url) - data in the form of a unified pointer to a resource.

  • Pictures - data in the form of a path to an image (example: https://zennolab.com/wp-content/themes/zenno/img/logo.png ).

  • Another Other is to select or specify the HTML tag you are interested in.

  • Visible items elements only - those objects that are available within the visible area of the current page.

  • Search in all frames (from the English frame) - an independent, embedded HTML document, which may contain the necessary data, or vice versa.

  • Options - [1], [2], [3], etc. automatically suggested option from possibly suitable conditions.

Advanced search

...

+ Additional settings are applied for more flexible search.

  • The data source is a data structure in the form of DOM or HTML (Difference between Source and Dom).

  • Attribute is a property of an HTML tag (element, object).

  • Search string - in which you can specify a path that tells you exactly which element (or elements) of the web page to refer to using the query language: XPath or CSS Selector .

  • Filter results - select what was found by condition, but in the result, place only what: Contains, Does not contain, Regex ( regular expression ).

  • Range is a condition by which you can select data from an array of objects.

...

Results

A window in which you can clearly see the preliminary data result for the selected condition.

...

After you have selected, all the necessary conditions and are clearly convinced in the preview window, you must click the button: Add to project . After that, in the workspace of the project, the action " Parse data " will appear, in which, you must specify the location to save the received data .

...

Requirement: Collect the addresses of all images of the active page, the current domain (in the example, the official site zennolab.com is used ).

...

Voila! Fast and easy ... We got the desired result!

...

...