Skip to content

Commit

Permalink
Update conab.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zeflorentino authored Dec 13, 2023
1 parent 1be545b commit d736ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conab.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def pegalink(mes, ano):
link = 'https://www.conab.gov.br/info-agro/safras/graos/boletim-da-safra-de-graos'
response = requests.get(link)
soup = bs(response.text, 'html.parser')
elemento = soup.find('a', title=f"Site_PREVISAO_DE_SAFRA-POR_PRODUTO-{mes}-{ano}.xlsx")
elemento = soup.find('a', title=f"Site_PREVISAO_DE_SAFRA-POR_PRODUTO-NOV-{ano}.xlsx")
elemento_href = elemento.get('href')
prefixo = 'https://www.conab.gov.br'
link_download = prefixo + elemento_href
Expand Down

0 comments on commit d736ec3

Please sign in to comment.