Closed cswh closed 1 year ago
os.environ["API_URL"] = 'https://api-staging.hestia.earth' #'https://api.hestia.earth'
os.environ["SEARCH_URL"] = 'https://search-staging.hestia.earth' #'https://search.hestia.earth
from hestia_earth.schema import SchemaType
from hestia_earth.utils.api import find_node, download_hestia, find_node_exact
node = find_node(SchemaType.CYCLE, {"products.term.name": 'Saplings'})
node = download_hestia("exqfz4a8clsx", "cycle")
node["products"]
find_node(SchemaType.CYCLE, {"products.term.@id": 'saplings'})