Skip to content

Commit

Permalink
fix: pegando o xpath corretamente
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-inja committed Jan 27, 2022
1 parent 5482132 commit be5e799
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ func (c crawler) selecionaMesAnoVerbas(ctx context.Context) error {
if c.year == "2018"{
pathYear = "/html/body/div[5]/div/div[58]/div[3]/div/div[1]/div[3]"
} else if c.year == "2019"{
pathYear = "/html/body/div[5]/div/div[67]/div[3]/div/div[1]/div[4]"
pathYear = "/html/body/div[5]/div/div[58]/div[3]/div/div[1]/div[4]"
} else if c.year == "2020"{
pathYear = "/html/body/div[5]/div/div[67]/div[3]/div/div[1]/div[5]"
pathYear = "/html/body/div[5]/div/div[58]/div[3]/div/div[1]/div[5]"
} else if c.year == "2021"{
pathYear = "/html/body/div[5]/div/div[67]/div[3]/div/div[1]/div[6]"
pathYear = "/html/body/div[5]/div/div[58]/div[3]/div/div[1]/div[6]"
} else if c.year == "2022"{
pathYear = "/html/body/div[5]/div/div[67]/div[3]/div/div[1]/div[7]"
pathYear = "/html/body/div[5]/div/div[58]/div[3]/div/div[1]/div[7]"
}

if c.month == "01" {
Expand Down

0 comments on commit be5e799

Please sign in to comment.