⚠️ Deprecated - No longer working with current API⚠️ : See #1
Cheeky Banjos (Unofficial Nandos Delivery Python Client)
For people who need chicken and don't have time to leave the terminal
from cheekybanjos import BanjosAPIClient
client = BanjosAPIClient ("[email protected] " , "chicken123" )
restaurant = client .find_restaurant ("SW1 1AA" )
basket = restaurant .current_basket
# Find menu item in menu
menu_item = restaurant .menu .select ("Burgers" , "Butterfly Burger" ).portions [0 ]
# Add menu item to basket
butterfly_burger = basket .add_item (menu_item )
# Add Sauce (Mandatory)
butterfly_burger .add_modifier ("PERi-ometer" ).add_pickOption ("Medium" )
# Choose how many sides (Mandatory)
butterfly_burger .add_modifier ("Specials Choice" ).add_pickOption ("2 Regular Sides" ).add_modifier ("2 Regular Sides" ).add_pickOptions ("PERi-Salted Chips" , "Garlic Bread" )
print (basket )
# Checkout
checkout = basket .checkout (asap = True , default_address = True , default_card = True )
# Provide Credit Card CVS
checkout .order_and_pay ("123" )