This is a script that will add items to your cart on the Billa Online Shop website.
The items to add are specified in a JSON file called shopping-list.json
.
There is also a environment file .env
where you need to specify your Billa login credentials.
- Install Node 20
- Clone the repository
- Create a
.env
file and set the variables (see the.env.example
file for reference) - Modify the
shopping-list.json
file to add the items you want to add to your cart, the structure looks like this:
[
{
"url": "URL of the billa product detail page",
"quantity": "Desired quantity",
}
]
- Run the batch script
billa-roboshopper.bat
The script also supports fallback items, which means that if the item is not available, it will try to add the fallback item instead. To use this feature, add a fallback
property to the item object, like this:
[
{
"url": "URL of the billa product detail page",
"quantity": "Desired quantity",
"fallback": {
"url": "URL of the billa product detail page",
"quantity": "Desired quantity",
// This could also have a fallback property, and so on...
}
}
]