Google searches for a keywords *Updated*

pedroportes

New Member
Premium
Joined
Jun 23, 2020
Messages
4
Reaction score
0
Achievement
Olá bom dia, poderia me ajudar com o seu macro, não está abrindo a segunda página do Google
 

pedroportes

New Member
Premium
Joined
Jun 23, 2020
Messages
4
Reaction score
0
Achievement
Olá bom dia pessoal, o macro não está funcionando bem ou em algumas configurações, pois no meu só abre e passa para as próximas páginas do google se estiver maximizado, tenho olhado as janelas que abrem no meu computador e só dá sequência se eu maximizar a janela do navegador, se eu deixo no tamanho original ele faz a busca no Google mas não dá sequência.
 

pedroportes

New Member
Premium
Joined
Jun 23, 2020
Messages
4
Reaction score
0
Achievement
Este script, macro está funcionando bem, o único problema é que ele é muito rápido na barra de pesquisa do Google e faz uma rolagem muito rápida, mas quando ele encontra o site ou se ele comporta muito bem faz a rolagem suave e vai para as próximas paginas . Se alguém que pode melhorar o seu agrado Muito.
O que outras pessoas estão dizendo
Code:
 aguarde WaitForLoading ();
aguarde ClickByXpath (GenerateXpath ("entrada", "tipo", "texto"));
aguarde Atraso (Aleatório (2000, 3000));
aguardar digitação ("desentupidora no bairro");
var textos = ["ahu", "batel", "atuba", "campina do siqueira", "campo comprido", "capão da imbuia", "sitio cercado", "barrerinha", "bigirrilho"];
aguardar digitação (RandomArray (textos));
aguarde Atraso (Aleatório (2000, 3000));
SendKeyPress (13);
aguarde Atraso (Aleatório (2000, 3000));
página = 1;
while (página <= 6) // considerando apenas a página 6 dos resultados
{
myTargetXpath = GenerateXpath ("a", "href", "% desentupidoracuritiba.info%");
foundLink = aguarde GetAttribute (myTargetXpath, "href");
if (foundLink)
 {
 aguarde ClickByXpath (myTargetXpath);
 // se encontrado, clique no destino e saia do loop por palavra-chave break
 pausa;
 }
 outro
 {
 // se não for encontrado, clique no botão Avançar para ir para a próxima página
 aguarde ClickById ("pnnext");
 aguarde Atraso (Aleatório (2000, 3000)); // aguarde um pouco para carregar a página seguinte
 aguarde WaitForLoading ();
 página = página + 1;
 }
}

{
        aguarde Atraso (Aleatório (2500, 3000));
        aguarde WaitForLoading ();
        faça {// rolar
            scrl = Aleatório (3,9);
            para (var i = 1; i <scrl; i ++) {
                aguarde EvaluateScript ("var ddE = document.documentElement; ddE.scrollTo (0, ddE.clientHeight / (Math.floor (Math.random () * 3) +9) + ddE.scrollTop);");
                aguarde Atraso (Aleatório (100.150));
            }
            aguarde Atraso (Aleatório (1000, 1500));
        } while (aguarde EvaluateScript ("var ddE = document.documentElement; ddE.clientHeight + ddE.scrollTop <ddE.scrollHeight"))
        Aguardar atraso (aleatório (5000.7000));
        aguarde ClickRandomInternalLink (true);
    } enquanto (1)
{
    Aguardar atraso (aleatório (10000, 20000));
    aguarde ClickRandomLink ();
}
[/CÓDIGO]
 

randymp1993

New Member
Premium
Joined
Jul 25, 2019
Messages
2
Reaction score
0
Achievement
can you hepl me write a same script but on the baidu.com
 

opsfafsme

Well-Known Member
Rule The Universe
VIP
Joined
Jul 2, 2018
Messages
243
Reaction score
91
Website
OnlinePiercingShop.com
Achievement
can you hepl me write a same script but on the baidu.com
Test this macro
 
  • Like
Reactions: serjojazz

quatio

New Member
VIP
Joined
Mar 20, 2020
Messages
7
Reaction score
0
Achievement
Hi, i would know if someone has resolve this issue:

1. When open the google page, and the user has not logged into google account, appears this popup that don't make write the script in the search bar.
How can close it? Which command must be use?
banner_google.png

My script is in this version:
JavaScript:
await Delay(Random(2500,3000));

await WaitForLoading();

var page, scrl, random_keyword;

var clicks = Random(13,25);

var max_page = Random(10,20);

var myDomain = "ventidisocieta.it";

var keywords = [

    "alessandro poggi martina pinto",

    "lettera insegnante io vi chiedo scusa",

    "elisa manig formaggi",

    "gastrodia anicellus",

    "viaggio nel mercato nero",

    "claudia zanella nuovo fidanzato",

    "vittorio grigolo roshi kamdar",

    "selvaggia romana vero nome"

    ];

    if ( await EvaluateScript("!! document.querySelector('input.gLFyf.gsfi')") ) {

        await ClickByXpath(GenerateXpath("input", "type", "text"));

    } else if ( await EvaluateScript("!! document.querySelector('input.gLFyf')") ) {

        await ClickByXpath(GenerateXpath("input", "type", "search"));

    } else {

        Exit();

    }

    await Delay(Random(2500,3000));

    random_keyword = Math.floor(Math.random() * keywords.length);

    await Typing (keywords[random_keyword], 300, 500);

    await Delay(Random(500,1000));

    await Typing ("\r\n");

    await Delay(Random(2500,3000));

    await WaitForLoading();

    page = 1;

    do {

        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(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 ) {

            if ( Random(1,100) < 15 ) {

                await ClickByXpath(myTargetXpath);

            } else {

                await EvaluateScript("window.open('https://" + myDomain + "','_self')");

                await WaitForLoading();

                await Delay(5000);

                await ClickByClass("btn_main_yes");

                await Delay(5000);

                ClickByXpath(GenerateXpath("button", "text", "ACCETTO"));

                await Delay(2000);

                ClickByXpath(GenerateXpath("button", "text", "Agree"));

            }

            break;

        }

        else if (page < max_page) {

            if ( await EvaluateScript("!! document.getElementById('pnnext')") ) {

                await ClickById("pnnext");

            } else if (await EvaluateScript("!! document.querySelector('span.RVQdVd')")) {

                await ClickByXpath(GenerateXpath("span", "class", "RVQdVd"));

            } else {

                Exit();

            }

            await Delay(Random(2500,3000));

            await WaitForLoading();

        }

        else {

            await EvaluateScript("window.open('https://" + myDomain + "','_self')");

        }

        page = page+1;

    } while (page <= max_page)

    do {

        await Delay(Random(2500,3000));

        await WaitForLoading();

        if ( Random(1,100) < 20 ) {

            await ClickRandomInternalLink(true);

        }

        await WaitForLoading();       

        do { //scroll

            await Delay(5000);

            ClickByXpath(GenerateXpath("button", "text", "ACCETTO"));

            await Delay(2000);

            ClickByXpath(GenerateXpath("button", "text", "Agree"));

            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(5000,7000));

    } while (--clicks)

    await Delay(Random(5000,7000));

    await WaitForLoading();

Exit();
 

Albacete91

New Member
VIP
Joined
Jul 29, 2020
Messages
11
Reaction score
0
Achievement
Hello! I can't get the macro to work. At first, in the macro editor with the default user agent it did work, and I added it to the wiever but it doesn't work there. (I had the default user agent, 100% pc). When I downloaded custom user agents (100% pc) it didn't work for me either in the macro editor. I have width-height 1000-600. Another error is that I only got one visit in Analytics, I think it counted the one I did in the editor, and the keyword was "not provided". How can I solve all this?
 

Albacete91

New Member
VIP
Joined
Jul 29, 2020
Messages
11
Reaction score
0
Achievement
as the @D.Richards reported this can help

await ClickById("introAgreeButton");
Hello! Excuse me, could you see my last message? I can't get the macro to work with computer user agents. I do not count any visits.
 

zerar

New Member
VIP
Joined
Jun 9, 2020
Messages
4
Reaction score
0
Achievement
Hi! Script not works. Maybe it works for users who surfed from English-speaking countries. But I try it from Poland-IP and Script not works. Did anyone get the script working?
 

vzar

New Member
Rule The Galaxy
VIP
Joined
Dec 17, 2019
Messages
3
Reaction score
0
Achievement
Awesome share mate. Thanks
 

farhanffaa

New Member
VIP
Joined
Nov 27, 2021
Messages
6
Reaction score
0
Achievement
someone guide me how to use google keyword search script. i mean where i have to put my keyword and target domain and search pages.
 

opsfafsme

Well-Known Member
Rule The Universe
VIP
Joined
Jul 2, 2018
Messages
243
Reaction score
91
Website
OnlinePiercingShop.com
Achievement

opsfafsme

Well-Known Member
Rule The Universe
VIP
Joined
Jul 2, 2018
Messages
243
Reaction score
91
Website
OnlinePiercingShop.com
Achievement
anyone have solution of not provided shows as keyword
as it seems to me still relevant
 

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