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

155
Visualizações
Using R to scrape JavaScript-heavy webpage

I am looking to scrape publicly available descriptions of parcels of land in R using Rvest and V8. However, I am having a hard time getting past the JavaScript on the page as it is highly dynamic. This is the code I have so far:

GISurl <- "https://hosting.tighebond.com/plainfieldct_public/##info-address"

GIS <- read_html(GISurl)

owners <- GIS %>% html_nodes("div.owner") %>% html_text()

# Create a new v8 context
ct <- v8()

#parse the html content from the js output and print it as text
read_html(ct$eval(gsub('document.write','', owners))) %>% html_text()

I keep getting an error message that reads:

Error in context_eval(join(src), private$context, serialize) : ReferenceError: parcel is not defined.

To my understanding, the message is popping up because R doesn't know which parcel of land I'd like data from. How would I go about pulling data from ALL of the parcels (instead of specific pre-determined ones)?

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