contact  |  about  |  sitemap

Detail pages that differ in number of items
Last Post 31 Mar 2009 01:09 PM by Tijn. 1 Replies.
Sort:
PrevPrev NextNext
Author Messages
kid

--
31 Mar 2009 01:07 PM
I'm trying to fetch some contents from a web page.

Basically this is the kind of content (items/articles):

1. Title
2. ID
3. RandomNumber

There are 5 or 6 of them in a page. The problem is that not every article has a RandomNumber. So, everything is ok when the article has the three columns, but when the article has only Title and ID, Djuggler reads the Randomnumber from the NEXT item, and screw up results.

Say item n.4 has the three variables, and 5 only two.
It read the third item from the item n.6 or from the next item available with the non empty variable. And them it jumps item n.6 completely.

Is there a solution to this?

I hope it's pretty clear, sorry for grammar errors.



Tijn

--
31 Mar 2009 01:09 PM
The solution is to use the Copy Text Between from Source action and the Copy Text Between action.
First you use the Copy Text Between from Source to copy the whole record to a variable. The Copy Text between from Source uses a cursor position so it will scrape all the records.

Next you use the Copy Text Between from the Text Manipulation section to dissect the record stored in the variable. This action does not use a cursor position, so your From Text property should be unique to the record. Note that you can use a wild card '*' in the From text property.

Please see the attached example.
Tijn

001_RecordsWithIncompleteData.djs



Quick Reply
toggle
  Username:
Subject:
Body:
Security Code:
Enter the code shown above:

Submit

Powered by Active Forums

Forum participation and optional registration

You don't need to be registered to partcipate in the Djuggler forums, however if you want to subscribe to email notifications you need to register. You can also subscribe to the forum RSS feed.