Bing searches for a keyword and chaotic surfing on the site

opsfafsme

Well-Known Member
Rule The Universe
VIP
Joined
Jul 2, 2018
Messages
200
Reaction score
75
Website
OnlinePiercingShop.com
Achievement
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

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:

opsfafsme

Well-Known Member
Rule The Universe
VIP
Joined
Jul 2, 2018
Messages
200
Reaction score
75
Website
OnlinePiercingShop.com
Achievement
you can improve it if you make a go next keyword instead of exit
Done :)

JavaScript:
await Delay(3000);
await WaitForLoading();
var page, scrl, random_keyword, temp;
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"
    ];
do {
    await ClickByXpath(GenerateXpath("input", "type", "search"));
    await Delay(3000);
    if (await EvaluateScript ('document.getElementById("sb_form_q").value')) {
        temp = await EvaluateScript ('document.getElementById("sb_form_q").value.length');
        SendKeyPress(36);
        for (j=0; j < temp; j++) {
            SendKeyPress(46);
            await Delay(100);
        }
        await Delay(Random(1000,1500));
    }
    random_keyword = Math.floor(Math.random() * keywords.length);
    await Typing (keywords[random_keyword], 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 {
        keywords.splice(random_keyword, 1);
    }
} while (keywords.length);
Exit();
 
Last edited:

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu