Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

94
Visualizações
Scraping google maps reviews but it return only one user rating

I am working on a scraping project in which I am scraping google maps reviews with the help of this URL: https://www.google.com/async/reviewDialog?hl=en&async=feature_id:0x47e66e2964e34e2d:0x8ddca9ee380ef7e0,sort_by:,start_index:,associated_topic:,_fmt:pc

and parsing it with cheerio:

$('.lcorif').each((i,el) => {

    rating[i] = $(el)
    .find(".EBe2gf").attr("aria-label")
    console.log(i)
    console.log(rating) //it gives me only first rating

 })

How can I get all user's ratings in the correct way?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

So I found out that the parent selector tag is only iterating the loop once, so I used this:

$('.gws-localreviews__google-review').each((i,el) => {
        rating[i] = $(el)
       .find(".EBe2gf").attr("aria-label")
})

And I got all user's ratings.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda