courtsbr / esaj

Scrapers for many e-SAJ systems
http://courtsbr.github.io/esaj/
GNU General Public License v2.0
46 stars 20 forks source link

download_2deg_lawsuit should be aware of list pages #13

Closed azeloc closed 6 years ago

azeloc commented 6 years ago

parsers won't work as intended on second degree docket numbers. sometimes one number defines two lawsuits.

wd <- tempdir()
downloaded_file <- esaj::download_2deg_lawsuit(id = '00000144420138260352', path = wd)

parser <- esaj::make_parser() %>% 
  esaj::parse_data()

run_parser(downloaded_file, parser, path = wd)

https://esaj.tjsp.jus.br/cposg/search.do?conversationId=&paginaConsulta=1&localPesquisa.cdLocal=-1&cbPesquisa=NUMPROC&tipoNuProcesso=SAJ&numeroDigitoAnoUnificado=&foroNumeroUnificado=&dePesquisaNuUnificado=&dePesquisa=00000144420138260352&uuidCaptcha=&pbEnviar=Pesquisar

download_2deg_lawsuit should download both lawsuits on such cases.

clente commented 6 years ago

Fixed with 12ac082a38ea9d233b77cfbd114f1e02b37aaa63