Page parses full install

One Page Parsing

  1. Place an input element on the page. A link to the page that we will process will be entered in this field.

2. Place an PagePreview element on the page. In this element will be placed content of parsed page.

3. Add new workflow. You need to pass the link to the plugin action "Web Page Parser - Get HTML From One URL"

Plugin action "Web Page Parser - Get HTML From One URL"
Example of workflow

4. Set 2 states of our PagePreview element:

First State Settings
Set Value Of First State
Second State Settings
Set Value Of Second State

5. Passing states to our element.

6. For further actions, we need 3 data tables.

  • Data table for templates with one field: Title ( type: Text )

Example of table for templates
  • Data table for template fields: 1. Template ID ( type: Text ) - Here we will store the template id from the Templates table. 2. Class List ( type: Text ) - Here we will store data about position of field on the parsed page. 3. Title ( type: Text ) - Here we will store title of field.

Example of table to templates data
  • Data table for fields selected direct from PagePreview element: 1. Title ( type: Text ) - Here we will store title of selected field. 2. Text ( type: Text ) - Here we will store text content of selected field.

Example of table for data

7. Add new workflow

For Collecting Data From Page

1
2

Note: You can pass the name for the data as you like (for example, do everything through a popup with an input field)

For Creating Template

  1. Need to create an template

2. Add Field To Template

Example of Workflow To Add Fields to an template

We got the unique id directly from the database. You can get them from wherever you like, for example, as on the demo page, from dropdown.

Optional Functions

Finding tags on page

  1. Add an dropdown to the page

  2. Add new step in workflow

  3. Create new state

  4. Set value of this state

  5. Set source of dropdown to this state

  6. Add new workflow

Now on change tag in dropdown all elements of the parsed page with this tag will be hightlighted

Exporting Data in .csv

.....................................

Multiple Page Parsing

  1. Place an fileuploader at the page

2. Add new workflow

3. Add action from plugin

5. Set link from fileuploader

6. Add step in workflow

7. Set data of action

The template can be chosen in any way convenient for you (see demo page).

8. Now return data in convenient format

  • As link to .csv file with data

1
2
3. Return generated link to an HTML element
  • As formatted text

1
2
Example of output

Last updated

Was this helpful?