Code Monkey home page Code Monkey logo

googlecoments's Introduction

Google Comments

Esse Aplicativo Foi criado para Capturar comentarios da sua empresa e poder retornar em Json para Manipulação em seu codigo Front-end

docker run -p 3001:3001 luuhsantanafs/googlecomments

para consultar vc deve mandar um POST para rota http://localhost:3001/scrapper e no Body tem que conter a tag 'url' com o link da empresa do google conforme a imagem abaixo

  • Clique em "Ver Todos os Comentarios do Google"

alt text

  • Depois Copia a url

alt text Copie a url

const data = JSON.stringify({
  "url": "https://www.google.com/search?q=jonife&sca_esv=6895027673ed6d92&sxsrf=ACQVn0-mgd4rdSwbcY9c1O13g1zcRRlq_A%3A1708806115203&ei=40_aZaeEDJD85OUP2I20-AU&udm=&ved=0ahUKEwjngfLr5sSEAxUQPrkGHdgGDV8Q4dUDCBA&uact=5&oq=jonife&gs_lp=Egxnd3Mtd2l6LXNlcnAiBmpvbmlmZTIEECMYJzIKEC4YgAQYChixAzINEC4YChiDARixAxiABDINEC4YgAQYChixAxiDATIKEC4YgAQYChixAzINEC4YgAQYChixAxiDATINEC4YgAQYChixAxiDATINEC4YgAQYChixAxiDATIKEC4YgAQYChixAzINEAAYgAQYChixAxiDAUitB1AAWLAGcAB4AZABAJgBhQGgAa8FqgEDMC42uAEDyAEA-AEBmAIGoALLBcICChAjGIAEGIoFGCfCAgsQABiABBixAxiDAcICCBAAGIAEGLEDwgIOEC4YgAQYigUYsQMYgwHCAgUQABiABMICCxAuGIAEGLEDGIMBwgIIEC4YgAQYsQPCAgUQLhiABMICDhAuGIAEGMcBGK8BGI4FwgILEC4YgAQYxwEYrwGYAwCSBwMwLjY&sclient=gws-wiz-serp#ip=1&lrd=0x94ce77f31a046f0b:0xae7cd526d10f6ca9,1,,,,"
});

* aqui ta um exemplo de post para o app

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://localhost:3001/scrapper");
xhr.setRequestHeader("Content-Type", "application/json");
xhr.setRequestHeader("User-Agent", "insomnia/8.6.1");

xhr.send(data);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.