# Trovaprezzi Scraper

Extracts information (price, seller, rating, etc.) about discounted products on trovaprezzi.it with keywords.

- Template page: [https://www.octoparse.com/template/crawler-trovaprezzi](https://www.octoparse.com/template/crawler-trovaprezzi)
- Categories: E-Commerce
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from search-results pages, detail pages.

## Output

The current workflow extracts 12 fields, including `Descrizione`, `Disponibilità`, `Parola_chiave`, `Prezzo`, `Prezzo_totale`, `Rating`, `Recensioni`, `Spedizione`, `Titolo`, `URL_immagine`, `URL_prodotto`, `Venditore`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Keywords and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Keywords

Optional. Enter a list of keywords you want to search on trovaprezzi.it Constraints: minItems=1; maxItems=1000; items.minLength=1; items.maxLength=5000.

## How to Use

# Trovaprezzi Scraper

Extracts product info (price, seller, rating, etc.) from `trovaprezzi.it` using keywords.

## Output Fields

- `Parola_chiave`
- `Titolo`
- `Descrizione`
- `Prezzo`
- `Spedizione`
- `Prezzo_totale`
- `Disponibilità`
- `Venditore`
- `Rating`
- `Recensioni`
- `URL_immagine`
- `URL_prodotto`

## Input

- **Keywords** (optional): Enter one or more values, one per line.

## How to Use

1. Open the template and select **Try it** or **Start**.
2. Fill in the input fields.
3. Run the task locally.
4. Review the output rows, then export or process the data.

## Limitations

- Runs locally; keep your computer and Octoparse open while running.
- `Recensioni`, `URL_immagine`, and `URL_prodotto` may be empty if the source doesn’t provide them.

## Tips

- Start with a few inputs and review results before scaling.
- Use specific valid keywords to reduce unrelated records.
- Use a stable identifier (e.g., `Parola_chiave`, `Titolo`) as a deduplication key.

## Pricing

- No per-line charge currently.
- Scheduling and API access may require a paid Octoparse plan.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Google Search Scraper](https://www.octoparse.com/template/google-search-scraper)
- [Google Maps Listings Scraper (by Keywords)](https://www.octoparse.com/template/google-maps-scraper-listing-page-by-keyword)
- [Google Maps Email Scraper & Extractor](https://www.octoparse.com/template/google-maps-contact-scraper)
- [Google Maps Leads Scraper](https://www.octoparse.com/template/google-maps-scraper-store-details-by-keyword)
- [Google Maps Listings Scraper (by URLs)](https://www.octoparse.com/template/google-maps-scraper-listing-page-by-url)

## Input Schema

```json
{
  "title": "Trovaprezzi Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "keywords": {
      "title": "Keywords",
      "description": "Enter a list of keywords you want to search on trovaprezzi.it",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      },
      "minItems": 1,
      "maxItems": 1000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": []
}
```

## Input JSON Example

Example 1

```json
{
  "keywords": [
    "MINSAN",
    "987860297",
    "987859511",
    "987858495",
    "987857190"
  ]
}
```

Example 2

```json
{
  "keywords": [
    "MINSAN",
    "987860297",
    "987859511",
    "987858495",
    "987857190"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Descrizione": {
      "type": "string",
      "description": ""
    },
    "Disponibilità": {
      "type": "string",
      "description": ""
    },
    "Parola_chiave": {
      "type": "string",
      "description": ""
    },
    "Prezzo": {
      "type": "string",
      "description": ""
    },
    "Prezzo_totale": {
      "type": "string",
      "description": ""
    },
    "Rating": {
      "type": "string",
      "description": ""
    },
    "Recensioni": {
      "type": "string",
      "description": ""
    },
    "Spedizione": {
      "type": "string",
      "description": ""
    },
    "Titolo": {
      "type": "string",
      "description": ""
    },
    "URL_immagine": {
      "type": "string",
      "description": ""
    },
    "URL_prodotto": {
      "type": "string",
      "description": ""
    },
    "Venditore": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Trovaprezzi Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "Descrizione": "CHINA Componenti compositum Descrizione Integratore alimentare. La china favorisce la regolarità del processo di sudorazione, la scutellaria mantiene le naturali difese dell'organismo, mentre feverfew e zenzero contrastano gli stati di tensione …",
  "Disponibilità": "Disponibile",
  "Parola_chiave": "987741927",
  "Prezzo": "17,88 €",
  "Prezzo_totale": "22,88 €",
  "Rating": "4.5",
  "Recensioni": "220.568",
  "Spedizione": "+ Sped. 5,00 €",
  "Titolo": "DR.GIORGINI SER-VIS Srl CHINA Compositum 80 Past.Servis",
  "URL_immagine": "",
  "URL_prodotto": "https://www.trovaprezzi.it/goto/996199525?impression=Vzl6eFN4eHZRNFR6eHNPUVlyQmdxUnRKeWoxYXZqT0tUcDY2MnZMbmE2YndkU25NNTVRb3NBPT01&search=OTg3NzQxOTI3CTE3Mg2&pos=1&nb_results=6&pc=6&sc=0&tc=0&offer_ss=pc&tr=prezzo",
  "Venditore": "Farmasave"
}
```

Example 2

```json
{
  "Descrizione": "Categoria prodotto e destinazione d'uso principale Cosmetici > Cura del corpo > Gel e trattamenti localizzati Target utente e situazioni d'uso consigliate Adulti; per uso esterno sulle zone interessate Indicazioni terapeutiche e benefici attesi Ge...",
  "Disponibilità": "Disponibile",
  "Parola_chiave": "987802257",
  "Prezzo": "23,74 €",
  "Prezzo_totale": "29,73 €",
  "Rating": "5.0",
  "Recensioni": "170.883",
  "Spedizione": "+ Sped. 5,99 €",
  "Titolo": "Proidema Dol Gel 75 Ml Salute Delle Articolazioni",
  "URL_immagine": "",
  "URL_prodotto": "https://www.trovaprezzi.it/goto/793567422?impression=Vzl6eFN4eHZRNFR6eHNPUVlyQmdxZGJoOUpiVlFyemhVTkw3K0hab0x1NStEQUlwam95bEl3PT01&search=OTg3ODAyMjU3CTE3Mw2&pos=1&nb_results=8&pc=8&sc=0&tc=0&offer_ss=pc&tr=prezzo",
  "Venditore": "Farmacia Uno"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "crawler-trovaprezzi",
  "taskName": "Trovaprezzi Scraper",
  "parameters": "{\"keywords\":[\"MINSAN\",\"987860297\",\"987859511\",\"987858495\",\"987857190\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"keywords\":[\"MINSAN\",\"987860297\",\"987859511\",\"987858495\",\"987857190\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "crawler-trovaprezzi",
        "taskName": "Trovaprezzi Scraper",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "crawler-trovaprezzi",
  "taskName": "Trovaprezzi Scraper",
  "parameters": "{\"keywords\":[\"MINSAN\",\"987860297\",\"987859511\",\"987858495\",\"987857190\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `crawler-trovaprezzi`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/crawler-trovaprezzi.json)
- [Manifest](https://www.octoparse.com/templates/crawler-trovaprezzi-manifest.json)
