Hi everyone! I'm strugling to scrapp some data from this web page Its a page result from the search section of the page, where I've set some parameters.
To clarify, here is the data[highlighted] that I want to extract from the 305 results that I found.
To find the right css selector I used SelectorGadget
So I've started with these lines of code and I keep receving 0(zero) nodes as response.
library(httr)
library(xml2)
#> Warning: package 'xml2' was built under R version 3.5.2
library(rvest)
library(reprex)
#Data scrapping
site <- "https://jurisprudencia.trf4.jus.br/pesquisa/resultado_pesquisa.php"
ht <- read_html(site)
html_nodes(x = ht, css = ".tr_resultado_par:nth-child(5) .td_resultado , .td_resultado tr:nth-child(3) td , .td_resultado tr:nth-child(2) td , .tr_resultado_par:nth-child(6) .td_resultado , .tr_resultado_par:nth-child(4) .td_resultado , .td_resultado tr:nth-child(1) td")
#> {xml_nodeset (0)}
Created on 2019-01-16 by the reprex package (v0.2.0).
My question is: Am I using the right url to get the data? I mean, do I need to code my parameters using the search engine url, instead of just using the url with the page results? If yes, how do I do this? If not, what am I doing wrong?
Thanks for your patience, if I misspelled something or killed the english grammar, please forgive me.