How to limit the scrapping result to 20?

Suppose i have 100 profiles in a page and i want to scrap just first 20, How to do that?

@fresherwink Hi, depending on the structure of the targeted website it should be possible by using 'jQuery' selector - :nth-of-type(-n+20)

Reference: Selectors | jQuery API Documentation