Next Link extractor pattern
Hi friends
Am using a Screen Scraper Basic Version
Am following the steps in E-Commerce Site tutorial
While scraping a job portal web site. The error Occurred at Creating the Next Link Extractor pattern.
It is Showing only one DataSet Record when i clicked on Test Pattern Button
The Url is
I had extracted the some portion i.e.,
I made some changes in the above Text i.e.,
what changes i should make to get 2 record in the DataSet's
please provide me required changes...
I'm sorry. I don't understand
I'm sorry. I don't understand the question.
I went your link at
It shows there are 4,331 jobs found, and it shows 10 per page, so what I would do is
The PAGE will be set in a script as 1 the first time.
{
if (num!=null)
{
num = String.valueOf(num);
num = num.replaceAll("[\\D]", "");
if (!num.isEmpty())
num = Integer.parseInt(num);
else
num = 0;
}
else
num = 0;
return num;
}
if (session.getv("PAGE")==1)
{
numJobs = makeNum(dataRecord.get("JOBS"));
jobsPerPage = 10;
pages = numJobs/jobsPerPage;
if (numJobs%jobsPerPage>0)
pages++;
session.log("There is " + numJobs + " jobs on " + pages + " pages");
for (i=2; i<=pages; i++) // Start at page 2
{
session.setv("PAGE", i);
session.log("Scraping page " + i + " of " + pages);
session.scrapeFile("Search results");
}
}
else
session.log("Already in a page iterator");