Skip to content

Commit

Permalink
Fix broken provider
Browse files Browse the repository at this point in the history
  • Loading branch information
krolow committed Dec 15, 2016
1 parent d5b8c7d commit 884b0b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import (
)

func main() {
doc, err := goquery.NewDocument("http://www.valor.com.br/valor-data")
doc, err := goquery.NewDocument("https://ptax.bcb.gov.br/ptax_internet/consultarUltimaCotacaoDolar.do")

if err != nil {
log.Fatal(err)
os.Exit(1)
}

result := doc.Find("#block-valor_data_blocks-ticker-moedas span")
result := doc.Find(".fundoPadraoBClaro2 td[align=right]")
value, err := strconv.ParseFloat(strings.Replace(result.First().Text(), ",", ".", -1), 64)

if err != nil {
Expand Down

0 comments on commit 884b0b1

Please sign in to comment.