Problem to Scrape

I have the link below, is my last page in the Scrape.

http://www.callfarma.com.br/departamento/4////pag274

When I put this link in Crhome Browser the last page products is ok.

but when I Put in SS the page return to first page.

How Can I Solve this ?

thanks a Lot.

angeloalves, This site is

angeloalves,

This site is definitely doing something odd. You're right, it does paginate in Chrome but I can't get it to do so in Opera or Firefox.

When in Chrome I couldn't get it to go from page 1 to page 2 without it reverting back to page 1. Instead I had to go from page 3 back to page 2. After that you can navigate on through to any number of pages. But there's just something funny with going from page 1 to page 2. Realize that this has nothing to do with screen-scraper.

Here is what the URLs should look like.

http://www.callfarma.com.br/departamento/4/pag259/pag2/pag2/pag1
http://www.callfarma.com.br/departamento/4/pag259/pag2/pag2/pag2
http://www.callfarma.com.br/departamento/4/pag259/pag2/pag2/pag3
http://www.callfarma.com.br/departamento/4/pag259/pag2/pag2/pag4
etc...

http://www.callfarma.com.br/departamento/9/pag2/pag3/pag4/pag1
http://www.callfarma.com.br/departamento/9/pag2/pag3/pag4/pag2
http://www.callfarma.com.br/departamento/9/pag2/pag3/pag4/pag3
etc...

So, it looks like there are four numbers you're going to need to extract from the navigation. The departamento number (4 & 9 above) then first set of page numbers (2 & 3 above) and the second set of pag numbers (2 & 4 above).

Once you have these numbers I would recommend iterating through the pages from within a script. You'll want to create an extractor pattern for the "Ultima" link in the pagination. When your extractor pattern finds a match on that then call you script that handles pagination. When your extractor pattern does not find a match then you'll know you're at the last page of results and screen-scraper will roll back up to the next navigation item.

I hope this helps.
Scott