2,122 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
Get Truffaut product
Read one product of the Truffaut French store (truffaut.com) from its product id or its product page link: reference, name, link, price and former price in euros (taxes included) of the first offer, eco-participation, online availability, color, category, images, description text, the number of offers and the first offer the page puts forward (Truffaut or a marketplace seller, with its offer id, shipping and delivery date). Stock and price are what a new guest sees online, with no store chosen. A product id or link that the site does not know fails with an error that says so. Get Truffaut product offers lists every seller's offer.
Search Truffaut products
Search the Truffaut French store (truffaut.com), plants, garden, pets and home, by free text and return one page of results in the site's own order, 48 a page: the total result count, has_next_page, and for each product its product id, reference, name, brand, link, price and former price in euros (taxes included), online availability, the seller line, whether Truffaut or a marketplace seller sells it, categories and image. The site also puts advice articles among the results: they keep their place, with kind article and no product id. Prices are those a new guest sees online, with no store chosen. Stop paging when has_next_page is false; a page past the last one returns an empty list. A search with no match returns an empty list. Pass a product id to Get Truffaut product or Get Truffaut product offers.
Get Truffaut product offers
List every offer for one product of the Truffaut French store (truffaut.com), the marketplace: the first offer the product page puts forward, then the other sellers' offers in the site's order. For each offer: offer id (null for the offer Truffaut sells itself), seller and seller page link, price and former price in euros (taxes included), shipping and earliest delivery date as the site writes them in French, the seller's share of positive reviews and review count, and the most units the site lets you add. Takes a product id or product page link from Search Truffaut products; one the site does not know fails with an error that says so. Pass an offer id to Add Truffaut product to cart.
List Truffaut cart items
List the items in the shopping cart of this browser on the Truffaut French store (truffaut.com): the item count, the items total in euros (taxes included, delivery not included), the currency, and each line with its line id, product id, offer id (null for a product Truffaut sells itself), name, seller, quantity, unit price and line price. Works as a guest, with no account: the cart lives in the browser, so a new browser has an empty cart. An empty cart returns an empty list.
Remove product from Truffaut cart
Remove a product from the shopping cart of this browser on the Truffaut French store (truffaut.com), by its product id (as List Truffaut cart items returns it), whatever its quantity, as the cart page's delete link does: every line of it, or only the line of one offer id or one line id. Returns removed and the cart as it is after the removal, in the shape List Truffaut cart items gives. A product that is not in the cart gives removed false and the cart unchanged, not an error. Works as a guest, with no account.
Add Truffaut product to cart
Add a product of the Truffaut French store (truffaut.com) to the shopping cart of this browser, from its product id or product page link, with a quantity from 1 to 10, as the product page's add to cart buttons do. Without an offer id it adds the first offer the page puts forward; pass an offer id from Get Truffaut product offers to buy from another marketplace seller. Returns the cart as the site holds it afterwards, in the shape List Truffaut cart items gives, plus the product id, offer id, name and units added. Works as a guest, with no account: lines already in the cart stay. A product the site does not know, an offer that is not on the product page, and an add the site refuses fail with an error that says so. Nothing is paid or ordered.
