Skip to content

Commit

Permalink
Merge pull request #6 from dadosjusbr/atualizando-url
Browse files Browse the repository at this point in the history
atualizando url
  • Loading branch information
danielfireman authored Feb 27, 2024
2 parents 9ca6595 + 4a12806 commit fcac709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (c crawler) abreCaixaDialogo(ctx context.Context, tipo string) error {
var baseURL string
selectYear := `//*[@id="SC_data"]`
if tipo == "contracheque" {
baseURL = "https://transparencia.mpam.mp.br/grid_VW_TRANSPARENCIA_GERAL/"
baseURL = "https://contrachequetransparencia.mpam.mp.br/grid_VW_TRANSPARENCIA_GERAL/"

if err := chromedp.Run(ctx,
chromedp.Navigate(baseURL),
Expand Down Expand Up @@ -117,7 +117,7 @@ func (c crawler) abreCaixaDialogo(ctx context.Context, tipo string) error {
}
}
} else {
baseURL = "https://transparencia.mpam.mp.br/grid_TRANSPARENCIA_INDENIZACAO/"
baseURL = "https://contrachequetransparencia.mpam.mp.br/grid_TRANSPARENCIA_INDENIZACAO/"

if err := chromedp.Run(ctx,
chromedp.Navigate(baseURL),
Expand Down

0 comments on commit fcac709

Please sign in to comment.