$echo '{
< "urls": [
< "https://books.toscrape.com/",
< "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
< ],
< "fields": [
< {
< "name": "title",
< "instruction": "The main page or product title (full text, not truncated).",
< "type": "text"
< },
< {
< "name": "description",
< "instruction": "The unique product or page description, written once, without a trailing '\''...more'\''. Null if none is given.",
< "type": "text"
< },
< {
< "name": "price",
< "instruction": "Product price including the currency symbol as shown on the page. Null if this is not a product page.",
< "type": "text"
< },
< {
< "name": "category",
< "instruction": "Product category or section name, if shown.",
< "type": "text"
< },
< {
< "name": "rating",
< "instruction": "Star rating as a number from 1 to 5 if shown (for example '\''star rating: 3/5'\'' means 3). Null if this is not a product page or no rating is shown.",
< "type": "number"
< },
< {
< "name": "in_stock",
< "instruction": "True if the product is in stock, false if out of stock, null if this is not a product page.",
< "type": "boolean"
< },
< {
< "name": "stock_count",
< "instruction": "The number of items available in stock if a count is shown (for example '\''In stock (22 available)'\'' means 22). Null if not shown or not a product page.",
< "type": "number"
< },
< {
< "name": "listed_items",
< "instruction": "Up to 8 full product titles from a catalog or listing page. Use the complete title (for example from each product link'\''s title attribute), never a truncated label that ends with an ellipsis. Empty list if this is a single product page.",
< "type": "list"
< }
< ]
<}' |
<apify call datatools-ai/ai-web-data-extractor --silent --output-dataset