Script Modification

hello

this is part of the script:

public String getLink(String s)
throws FailingHttpStatusCodeException, MalformedURLException, IOException
{
int i = 0;
do
{
Object obj = null;
try
{
String s1 = getLink(s, i);
return s1;
}
catch(LinkNotFoundException linknotfoundexception)
{
linknotfoundexception.printStackTrace();
}
System.out.println((new StringBuilder(“Getting page:”)).append(i).toString());
i++;
} while(true);
}

this is the output of the script:

Getting page:0
Getting page:1
Getting page:2
.
.
.
Getting page:500

this is what I want:

the getting page should have a repeat function or loop once it reaches Getting page:200 it will repeat Getting page:0

thank you

Leave a Reply

Your email address will not be published. Required fields are marked *