Producten
Taal: English | Nederlands
Zoeken
import asyncio
from appie import AHClient
async def main() -> None:
async with AHClient() as client:
products = await client.products.search("melk", limit=5)
for product in products:
print(
product.title,
product.price,
product.original_price,
product.is_bonus,
product.is_organic,
)
asyncio.run(main())
Verwacht resultaat:
AH Halfvolle melk 1.29 1.49 True True
Campina Halfvolle melk voordeelverpakking 1.99 None False None
...
Productvelden bevatten nu ook metadata die handig is voor boodschappenplanning, zoals:
priceoriginal_priceis_bonusbonus_labelbonus_start_datebonus_end_dateis_organicproperty_labels
Detail
import asyncio
from appie import AHClient
async def main() -> None:
async with AHClient() as client:
product = await client.products.get(1525)
print(product)
asyncio.run(main())
Verwacht resultaat:
id=1525 title='AH Halfvolle melk' brand='AH' price=1.29 original_price=1.49 is_bonus=True is_organic=True ...
Lees verder: Bonnen voor bonoverzichten en gedetailleerde bonregels.