Noticias Agricolas API¶
The Noticias Agricolas module republishes CEPEA/ESALQ indicators and serves as an automatic fallback when direct access to CEPEA fails (Cloudflare).
restrito license
All rights reserved (Law 9.610/98). Data originating from CEPEA (CC BY-NC 4.0).
Internal use
This module is not called directly by the user. It is invoked automatically by the CEPEA module as a fallback. Documented here for technical reference.
Functions¶
fetch_indicador_page¶
Fetches the HTML page with the indicators for a product.
| Parameter | Type | Description |
|---|---|---|
produto |
str |
Product (soja, milho, boi, cafe, algodao, trigo, etc.) |
Returns: Page HTML as a string.
parse_indicador¶
Extracts indicators from the HTML.
| Parameter | Type | Description |
|---|---|---|
html |
str |
HTML content of the page |
produto |
str |
Product name |
Returns: List of Indicador objects.
Notes¶
- Source: Noticias Agricolas —
restritolicense - Automatic CEPEA fallback — the user does not need to call it directly
- Warning emitted on first use
- Fallback active while CEPEA remains protected by Cloudflare