Just Get First 5

Questions and answers about anything related to Helium Scraper
Post Reply
Suphi
Posts: 2
Joined: Wed Dec 12, 2012 10:28 am

Just Get First 5

Post by Suphi » Wed Dec 12, 2012 10:34 am

Hi,

I created a template and it works great but I just want to get first 5 record in the page and I could not figure out how.

Do you have any idea to get first 5 records?

Thanks,

Suphi
Posts: 2
Joined: Wed Dec 12, 2012 10:28 am

Re: Just Get First 5

Post by Suphi » Wed Dec 12, 2012 4:01 pm

I made some tests with "Execute tree: Select Each" and some other execute tree options as well but it didnt worked.

webmaster
Site Admin
Posts: 521
Joined: Mon Dec 06, 2010 8:39 am
Contact:

Re: Just Get First 5

Post by webmaster » Mon Dec 17, 2012 12:34 am

Hi,

I'm attaching a premade project that will do what you need. Just import this project into your current project and add an Execute Actions Tree -> Define Kind for every kind you want to limit the amount of elements to select, right before your Extract action or whatever action uses the kinds you want to limit.

It'll ask you to provide a Base Kind, a New Kind Name and a Max Items quantity. The Base Kind is the kind that you want to limit, the New Kind Name will be the name of a new kind that will select Max Items elements taken from the Base Kind and give you the steps you need to follow in order to create this new kind.

Let me know if you have any questions.
Attachments
SelectTopN.hsp
(496.41 KiB) Downloaded 620 times
Juan Soldi
The Helium Scraper Team

Post Reply