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

311
Visualizações
How to scrape related results appearing in google search results?

Hey I am working on a scraping project to scrape google search results, but I can't found the way how to scrape the related results with their respective result :

This image shows the related result bolow SerpApi - GitHub

This image shows the related result bolow SerpApi - GitHub

I want the result in this format :

{
  "position": 2,
  "title": "SerpApi - GitHub",
  "link": "https://github.com/serpapi",
  "displayed_link": "https://github.com › serpapi",
  "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTafCQTO0unWWglFkuLJV72Vkezw2pEFbbyJf4kuXTkDaoqAu5vZdpD&usqp=CAE&s",
  "snippet": "API to get search engine results with ease. SerpApi has 45 repositories available. Follow their code on GitHub.",
"related_results": [
    {
      "position": 1,
      "title": "GitHub - serpapi/google-search-results-python",
      "link": "https://github.com/serpapi/google-search-results-python",
      "displayed_link": "https://github.com › serpapi › google-search-results-pyt...",
      "snippet": "This Python package is meant to scrape and parse search results from Google, Bing, Baidu, Yandex, Yahoo, Home depot, Ebay and more.. using SerpApi.",
    }
   ]
}

Currently I am only able to target organic results like this :

$(".tF2Cxc ,.kWxLod ").each((i, el) => {
  organicResults[i] = ({
    title: $(el).find(".yuRUbf h3").text(),
    link:$(el).find("div.yuRUbf  a").attr("href"),
    displayed_link:$(el).find(".yuRUbf .NJjxre").text(),
    snippet: $(el).find(".VwiC3b").text()
    })
  })

which gives me only this part :

  {
  "title": "SerpApi - GitHub",
  "link": "https://github.com/serpapi",
  "displayed_link": "https://github.com › serpapi",
  "snippet": "API to get search engine results with ease. SerpApi has 45 repositories available. Follow their code on GitHub.",
  }

How can I add related_results to this organic result ?

Note: I am using cheerio to parse html here.

about 4 years ago · Juan Pablo Isaza
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