hi guys, a very long time ago someone asked for something similar.
You need to change the settings to your needs.
keywords - an array of your keywords (the larger the array, the more human-like the search)
max_page - the maximum number of pages on which to search for your keywords
domain - your domain
Creating a campain set yahoo.com as a start page.
This is a simple script. Loads a yahoo.com, an arbitrary keyword from your array is entered in the search bar.
Pages are sequentially viewed if your domain is in the results, click on the link and then continue to randomly click on the website’s internal links.
If your domain is not found in the search results after viewing max_page, the script goes to the next random keyword from your list, etc.
You need to change the settings to your needs.
keywords - an array of your keywords (the larger the array, the more human-like the search)
max_page - the maximum number of pages on which to search for your keywords
domain - your domain
Creating a campain set yahoo.com as a start page.
This is a simple script. Loads a yahoo.com, an arbitrary keyword from your array is entered in the search bar.
Pages are sequentially viewed if your domain is in the results, click on the link and then continue to randomly click on the website’s internal links.
If your domain is not found in the search results after viewing max_page, the script goes to the next random keyword from your list, etc.
JavaScript:
await Delay(Random(2500,3000));
await WaitForLoading();
var page, scrl, random_keyword, temp;
var max_page = 2;
var myDomain = "%onlinepiercingshop.com%";
var keywords = [
"diamond nose stud",
"h2ocean cleaning and healing solution",
"citrine nose stud",
"tinkerbell belly button ring"
];
do {
await ClickByXpath(GenerateXpath("input", "type", "text"));
await Delay(Random(2500,3000));
await ClickById("sbq-clear");
await Delay(Random(1000,1500));
random_keyword = Math.floor(Math.random() * keywords.length);
await Typing (keywords[random_keyword], 300, 500);
await Delay(Random(1000,1500));
await Typing ("\r\n");
await Delay(Random(2500,3000));
await WaitForLoading();
page = 1;
while ( page <= max_page ) {
do { //scroll page
scrl = Random(3,9);
for (var i = 1; i < scrl; i++) {
await EvaluateScript("var ddE = document.documentElement; ddE.scrollTo(0, ddE.clientHeight/(Math.floor(Math.random()*3)+9) + ddE.scrollTop);");
await Delay(Random(100,150));
}
await Delay (Random(1000,1500));
} while (await EvaluateScript("var ddE = document.documentElement; ddE.clientHeight+ddE.scrollTop < ddE.scrollHeight"))
myTargetXpath = GenerateXpath("a", "href", myDomain);
foundLink = await GetAttribute(myTargetXpath, "href");
if ( foundLink ) {
// await ClickByXpath(myTargetXpath);
await EvaluateScript("window.open('" + foundLink + "','_self')");
break;
}
else {
await ClickByXpath(GenerateXpath("a", "class", "next"));
await Delay(Random(2500,3000));
await WaitForLoading();
page = page+1;
}
}
if ( foundLink ) { // random surf my site
do {
await Delay(Random(2500,3000));
await WaitForLoading();
do { //scroll page
scrl = Random(3,9);
for (var i = 1; i < scrl; i++) {
await EvaluateScript("var ddE = document.documentElement; ddE.scrollTo(0, ddE.clientHeight/(Math.floor(Math.random()*3)+9) + ddE.scrollTop);");
await Delay(Random(100,150));
}
await Delay (Random(1000,1500));
} while (await EvaluateScript("var ddE = document.documentElement; ddE.clientHeight+ddE.scrollTop < ddE.scrollHeight"))
await Delay(Random(3000,5000));
await ClickRandomInternalLink(true);
} while (true)
}
else {
keywords.splice(random_keyword, 1);
}
} while (keywords.length);
Exit();
Last edited: