# TripAdvisor Hotel Detail Scraper (for Italy)

Scrape hotel details (address, phone number, rating, etc.) on Tripadvisor.it with hotel detail page URLs.

- Template page: [https://www.octoparse.com/template/crawler-dettagli-hotel-tripadvisor](https://www.octoparse.com/template/crawler-dettagli-hotel-tripadvisor)
- Categories: Travel
- 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 detail pages.

## Output

The current workflow extracts 13 fields, including `Pagina_attuale`, `Nome_hotel`, `Indirizzo`, `Numero_telefono`, `Recensioni_totali`, `Rating_generale`, `Rating_posizione`, `Rating_pulizia`, `Rating_servizio`, `Rating_qualità_prezzo`, `Presentazione`, `Numero_ristorante_nelle_vicinanze`, `Numero_attrazioni_nelle_vicinanze`.

## 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 Hotel detail page URLs (up tp 10) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Hotel detail page URLs (up tp 10)

Optional. URLs of the hotel detail pages on Tripadvosor.it Constraints: minItems=1; maxItems=10; items.minLength=1; items.maxLength=5000.

## How to Use

# TripAdvisor Hotel Detail Scraper (for Italy)

Collects hotel details (address, phone number, rating, etc.) from Tripadvisor.it using hotel detail page URLs. Source: [Tripadvisor](https://www.tripadvisor.it/). This template currently has no per-line charge.

## Input

- `Hotel detail page URLs (up tp 10)` (optional): enter one or more values, one per line.

## Output

Returns these detail-page fields:

`Pagina_attuale`, `Nome_hotel`, `Indirizzo`, `Numero_telefono`, `Recensioni_totali`, `Rating_generale`, `Rating_posizione`, `Rating_pulizia`, `Rating_servizio`, `Rating_qualità_prezzo`, `Presentazione`, `Numero_ristorante_nelle_vicinanze`, `Numero_attrazioni_nelle_vicinanze`.

Fields such as `Presentazione`, `Numero_ristorante_nelle_vicinanze`, and `Numero_attrazioni_nelle_vicinanze` can be empty when the source record does not provide them.

## How to Use

1. Open the template and select **Try it** or **Start**.
2. Complete the input fields.
3. Run the task locally with the Octoparse desktop app.
4. Review the output rows and export or process the structured data.

## Usage Notes

- Start with one or a few inputs and review the returned rows before scaling.
- Use the most specific valid hotel detail page URLs (up tp 10) to reduce unrelated or duplicate records.
- When available, use a stable URL or identifier from `Pagina_attuale`, `Nome_hotel`, `Indirizzo`, `Numero_telefono`, `Recensioni_totali`, `Rating_generale`, `Rating_posizione`, `Rating_pulizia`, `Rating_servizio`, or `Rating_qualità_prezzo` as the deduplication key.

## Scheduling & Export

- Schedule recurring local runs; keep your computer and Octoparse open while the task is running.
- Export rows to CSV, Excel, JSON, databases, or cloud storage.
- Send data to reporting and AI workflows through Octoparse OpenAPI or the [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates).
- Scheduling and API access may require a paid Octoparse plan.

## Limitations

- The template runs locally.
- It collects the detail-page fields shown above, not a complete review or comment history.
- Octoparse plan or resource limits may still apply.

## 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

- [TripAdvisor Hotel Review Scraper (for Italy)](https://www.octoparse.com/template/crawler-recensioni-hotel-tripadvisor)
- [Tripadvisor Hotel List Scraper (for Italy)](https://www.octoparse.com/template/crawler-lista-hotel-tripsdvisor)
- [Booking.com Hotel List Scraper (for Italy)](https://www.octoparse.com/template/crawler-lista-hotel-booking)
- [Amazon Product Detail Scraper (for Italy)](https://www.octoparse.com/template/crawler-dettagli-prodotto-amazon)
- [eBay Product Detail Scraper (for Italy)](https://www.octoparse.com/template/crawler-dettagli-prodotti-ebay)

## Input Schema

```json
{
  "title": "TripAdvisor Hotel Detail Scraper (for Italy) input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "hotel_detail_page_URLs": {
      "title": "Hotel detail page URLs (up tp 10)",
      "description": "URLs of the hotel detail pages on Tripadvosor.it",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      },
      "minItems": 1,
      "maxItems": 10,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": []
}
```

## Input JSON Example

Example 1

```json
{}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Pagina_attuale": {
      "type": "string",
      "description": ""
    },
    "Nome_hotel": {
      "type": "string",
      "description": ""
    },
    "Indirizzo": {
      "type": "string",
      "description": ""
    },
    "Numero_telefono": {
      "type": "string",
      "description": ""
    },
    "Recensioni_totali": {
      "type": "string",
      "description": ""
    },
    "Rating_generale": {
      "type": "string",
      "description": ""
    },
    "Rating_posizione": {
      "type": "string",
      "description": ""
    },
    "Rating_pulizia": {
      "type": "string",
      "description": ""
    },
    "Rating_servizio": {
      "type": "string",
      "description": ""
    },
    "Rating_qualità_prezzo": {
      "type": "string",
      "description": ""
    },
    "Presentazione": {
      "type": "string",
      "description": ""
    },
    "Numero_ristorante_nelle_vicinanze": {
      "type": "string",
      "description": ""
    },
    "Numero_attrazioni_nelle_vicinanze": {
      "type": "string",
      "description": ""
    }
  },
  "title": "TripAdvisor Hotel Detail Scraper (for Italy) 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
{
  "Pagina_attuale": "https://www.tripadvisor.it/Hotel_Review-g187785-d1068538-Reviews-Decumani_Hotel_de_Charme-Naples_Province_of_Naples_Campania.html",
  "Nome_hotel": "Decumani Hotel de Charme",
  "Indirizzo": "",
  "Numero_telefono": "011 39 081 551 8188",
  "Recensioni_totali": "(2781 recensioni)",
  "Rating_generale": "",
  "Rating_posizione": "",
  "Rating_pulizia": "",
  "Rating_servizio": "",
  "Rating_qualità_prezzo": "",
  "Presentazione": "Siamo lieti di aprirvi le porte del Palazzo Cardinal Sisto Riario Sforza, ultimo Vescovo del Regno di Napoli Borbonica.\n\nAbbiamo provveduto a restaurare l'appartamento, che fu dimora del Cardinale Sisto sino all'Unità d'Italia (1861), adattandolo alle esigenze di un albergo dotato di ogni comfort.\n\nSaremo ben felici di accogliervi in una delle sue meravigliose stanze e di lasciarvi rilassare nel suo prestigioso salone tutto specchi e stucchi settecenteschi elaborato dai migliori artigiani del tempo.\n\nDesideriamo che la casa di Sisto Riario-Sforza diventi la vostra casa nel cuore di Napoli, un luogo che vi consentirà di immergervi nella sua colorata e calorosa realtà, nella Napoli antica che fu un tempo greca e poi romana...",
  "Numero_ristorante_nelle_vicinanze": "",
  "Numero_attrazioni_nelle_vicinanze": ""
}
```

## 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-dettagli-hotel-tripadvisor",
  "taskName": "TripAdvisor Hotel Detail Scraper (for Italy)",
  "parameters": "{}"
}
```

## Python Example

```python
import json
import requests

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

parameters = json.loads("{}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "crawler-dettagli-hotel-tripadvisor",
        "taskName": "TripAdvisor Hotel Detail Scraper (for Italy)",
        "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-dettagli-hotel-tripadvisor",
  "taskName": "TripAdvisor Hotel Detail Scraper (for Italy)",
  "parameters": "{}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `crawler-dettagli-hotel-tripadvisor`, 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-dettagli-hotel-tripadvisor.json)
- [Manifest](https://www.octoparse.com/templates/crawler-dettagli-hotel-tripadvisor-manifest.json)
