Example

This example Data Stream demonstrates how to use this Context Provider to retrieve specific data from the XMPro home page.

Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

Drag the Web Scraper Context Provider onto the canvas, link the output endpoint to the printer, rename it, and save the Data Stream.

Step 2: Configure General

Select the Agent and click Configure.

In this case, keep the default Collection and polling interval.

Step 3: Configure the Website Details

Select the Url and License Keys.

Step 4: Configure Selectors

Enter the Container Selector and Item Selector.

In this case, set the Container Selector to '#row-1234365377' and Item Selector to '#col-2010014477 > div'.

Configure the Elements Grid. Click + to add a row to the grid and add the following rows:

Step 5: View Results

Apply the changes, save the Data Stream, and publish it.

Let's look at the Live Data View. Observe that the details from the web page are printed every 10 seconds.

Files

See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.

Last updated