I am using Octoparse to loop over different product detail pages. However, each product has some different properties, in a table with 2 columns. For example:
Now, what I would like it so have 3 colums as an output: Width, Length and Size, with for each product the values filled if they have the value, otherwise empty. For 3 columns I can do this manually by selecting the sibling with Xpath. However, when I have 500 products with all of them having 5 properties, this would mean I have to make 2500 different xpath rules (and checking each product manually). Is there any way I can get the field name, as well as the field value with Xpath and just loop over the rows the product has? and create separate columns for each value?
Thanks in advance!
Please sign in to leave a comment.