Search Dangdang products
Automatically search Dangdang products on dangdang.com. Search the Dangdang Chinese store (dangdang.com), books, home, fashion, electronics and more, by free text (Chinese words work best) and return one page of results in the site's own order, 60 a page, up to page 100: the total result count, has_next_page, and for each product its product id, name, link, price and list price in yuan, review count, seller (Dangdang itself or a marketplace shop, with its shop id), book details when the site shows them, the promotion line and image. 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, not the products the site suggests instead. Use a managed browser in China (country CN). Pass a product id to Get Dangdang product.
Inputs
query requiredFree-text search, for example "手机" or "耳机".
page optionalResult page, 60 products a page, 100 pages at most. Stop when has_next_page is false.
Default: 1Output
page requireditems requiredquery requiredhas_next_page requiredtotal_results requiredFAQ
Get Dangdang product
Read one product of the Dangdang Chinese store (dangdang.com) from its product id or its product page link: name, subtitle, link, seller (Dangdang itself or a marketplace shop, with its shop id), selling price and list price in yuan, whether it is in stock, review count, categories, the key facts the page lists (for a book the author, publisher and book number), and images. Stock and price are what a new guest sees online with no delivery address chosen. A product id or link that the site does not know fails with an error that says so. Dangdang has one seller for each product, so there is no offers script. Use a managed browser in China (country CN): other places can get a slide verification.
Remove Dangdang product from cart
Remove a product from the shopping cart of this browser on the Dangdang Chinese store (dangdang.com), by its product id (as List Dangdang 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 line id. Returns removed and the cart as it is after the removal, in the shape List Dangdang 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. Use a managed browser in China (country CN): other places can get a slide verification.
List Dangdang cart items
List the items in the shopping cart of this browser on the Dangdang Chinese store (dangdang.com): the item count, the items total in yuan (delivery not included), the currency, and each line with its line id, product id, offer id (always null: Dangdang has one seller for each product), 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. Use a managed browser in China (country CN): other places can get a slide verification.
