Comment on page
Example
This example Data Stream demonstrates how to use this Context Provider to retrieve specific data from the XMPro home page.
Drag the Web Scraper Context Provider onto the canvas, link the output endpoint to the printer, rename it, and save the Data Stream.

Select the Agent and click Configure.
In this case, keep the default Collection and polling interval.

Select the Url and License Keys.

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:
Name | Selector | Data Type |
---|---|---|
Heading | div > h1 | String |
Sub Heading | div > h | String |
Details | #text-4143654336 > p | String |

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.

File | Link | Security Key |
---|---|---|
Data Stream | Web Scraper CP Example.xuc | C0mp|ex123 |
Last modified 4mo ago