2,339 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
List Croma cart items
List the items in the Croma (croma.com, India) shopping cart of this browser: for each line its entry number, product code, name, quantity, unit price, struck-through price and line price in rupees, link, image and a review_hash (pass it to Remove from Croma cart), plus the item count, subtotal, delivery and total. It is the browser's guest cart: no sign-in. An empty cart gives an empty list.
Search Croma products
Search Croma (croma.com, India) by keywords, 21 products a page, in the store's own order: for each product its code (pass it to Get Croma product or Add to Croma cart), name, link, brand, price and struck-through price in rupees, discount, rating and review count, offer text and image, plus the total number of results and whether another page follows. A search with no match, or a page after the last, gives an empty list.
Get Croma product
Get one product of Croma (croma.com, India) by its code or product link: name, link, brand, model, price in rupees, whether it is in stock for delivery, rating and review count, description, images and categories. An unknown product fails with an error that says so.
Add to Croma cart
Add one unit of a Croma (croma.com, India) product to the shopping cart with the product page's own Add to cart button, by its code or product link, and return the cart afterwards: each line with its entry number, product code, name, quantity, prices in rupees and a review_hash, plus the item count, subtotal, delivery and total. Works as a guest: lines already in the cart stay. Nothing is paid or ordered. An unknown product or one that cannot be bought fails with an error.
Remove from Croma cart
Remove one line from the Croma (croma.com, India) shopping cart of this browser, whatever its quantity, with the cart page's own remove button, by its product code and the review_hash that List Croma cart items gives for it, and return what is left. The review_hash makes sure the line is still the one that was reviewed (same product, quantity and price): when it changed, or the line is not in the cart, nothing is removed and the run fails with an error.
