Install supermarktconnector via pip
masterTo use this library to collect product information from Albert Heijn and Jumbo, install the package using pip:
pip install supermarktconnectorrepository·master·Indexed 41 days ago
https://github.com/bartmachielsen/supermarktconnectorA Python library for collecting product information and categories from Dutch supermarkets Albert Heijn and Jumbo. It provides the AHConnector for fetching categories and the JumboConnector for searching products, including details on pricing, availability, and images.
To use this library to collect product information from Albert Heijn and Jumbo, install the package using pip:
pip install supermarktconnectorUse the JumboConnector to search for specific products. The search_products method returns product details including ID, title, quantity options, pricing (including unit price), availability, and image information.
from supermarktconnector.jumbo import JumboConnector
connector = JumboConnector()
connector.search_products(query='Smint', size=1, page=0)Use the AHConnector to fetch the available product categories from Albert Heijn. The get_categories() method returns a list of categories containing id, name, images, and nix18 status.
from supermarktconnector.ah import AHConnector
connector = AHConnector()
connector.get_categories()