Using the POS parameter in extracting data from tables

Information related to the use of iMacros for Web Scraping, Data Mining and creating Mashups.

Moderator: iMacros Moderators

Using the POS parameter in extracting data from tables

by Hannes, Tech Support on Sat Oct 28, 2006 12: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.
Hannes, iOpus Support
Hannes, Tech Support
 
Posts: 2120
Joined: Thu Sep 21, 2006 6:27 am

Return to How-To's and Examples for Web Scraping

Who is online

Users browsing this forum: No registered users and 1 guest

Website Monitoring