Using the POS parameter in extracting data from tables

Information related to the use of iMacros for Web Scraping, Data Mining and creating Mashups.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team
Post Reply
Hannes, Tech Support

Using the POS parameter in extracting data from tables

Post by Hannes, Tech Support » Sat Oct 28, 2006 7:47 pm

In cases where you do not want to extract the whole table (as described in http://www.iopus.com/imacros/help/extract_tables.htm), it is often the case, that the data you want to extract can be found by following a certain sequence of position (POS) values.

Let's say, we find (by using the Extraction Wizard) that the first three relevant fields have the same EXTRACT tag, but they differ in the position (POS) value, which is 2 for the first, 5 for the second and 8 for the third.

Having a closer look at these numbers, we may find that they belong to the sequence: 2, 5, 8, 11, 14, ... i.e. each element is the result of adding three to the element before.

We can then easily extract all relevant data by looping through this sequence in a script.
Post Reply