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 bing.com as a start page.
This is a simple script. Loads a bing.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 the domain is not found before the max_page, the script terminates
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 bing.com as a start page.
This is a simple script. Loads a bing.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 the domain is not found before the max_page, the script terminates
JavaScript:
await Delay(3000);
await WaitForLoading();
var page, scrl;
var max_page = 7;
var myDomain = "%onlinepiercingshop.com%";
var keywords = [
"diamond nose stud",
"h2ocean cleaning and healing solution",
"citrine nose stud",
"tinkerbell belly button ring"
];
await ClickByXpath(GenerateXpath("input", "type", "search"));
await Delay(3000);
await Typing (RandomArray(keywords), 300, 500);
await Delay(1000);
await Typing ("\r\n");
await Delay(3000);
await WaitForLoading();
page = 1;
while ( page <= max_page ) {
do { //scroll
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(100);
}
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);
break;
}
else {
await ClickByXpath(GenerateXpath("a", "title", "Next page"));
await Delay(3000);
await WaitForLoading();
page = page+1;
}
}
if ( foundLink ) { // random surf my site
do {
await Delay(3000);
await WaitForLoading();
do { //scroll
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(100);
}
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 Exit();
Last edited: