# Mypersonaltrainer Scraper

Scrape scientific information (titolo, descrizione, URL, etc.) from My-personaltrainer.it.

- Template page: [https://www.octoparse.com/template/crawler-mypersonaltrainer](https://www.octoparse.com/template/crawler-mypersonaltrainer)
- Categories: Others
- 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 5 fields, including `Descrizione`, `Img_url`, `Pagina_url`, `Parola_chiave`, `Titolo`.

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

## Input

### Keywords (up tp 1000)

Optional. The keywords you want to search for on My-personaltrainer.it Constraints: minItems=1; maxItems=1000; items.minLength=1; items.maxLength=5000.

## How to Use

## Mypersonaltrainer Scraper

Collects scientific information (titolo, descrizione, URL, etc.) from [My Personaltrainer](https://www.my-personaltrainer.it/).

### Output Fields

- `Parola_chiave`
- `Titolo`
- `Pagina_url`
- `Descrizione`
- `Img_url`

### Pricing

No per-line charge.

### Input

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

### How to Use

1. Open the template and select **Try it** or **Start**.
2. Complete the input fields.
3. Choose a local or cloud run.
4. Review the output rows and export or process the structured data.

### Limitations

- Collects only from search results pages; does not add data not displayed by My Personaltrainer.
- Fields (`Pagina_url`, `Descrizione`, `Img_url`) can be empty when the source does not provide them.

### Tips

- Start with a few inputs and review before scaling.
- Use specific keywords to reduce unrelated records.
- Use a stable identifier from the output fields for deduplication.

### Scheduling and Export

- Schedule runs locally or in the cloud. Keep your computer and Octoparse open for local scheduled runs.
- Export to CSV, Excel, JSON, databases, or cloud storage.
- Use Octoparse OpenAPI or [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates) for automation.
- Scheduling and API access may require a paid plan.

## Notes

Se il modello non funziona bene, non esitare di informarci dei parametri che hai inserito all'indirizzo email template@octoparse.com

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

- [eBay Listing Page Scraper (by keyword)](https://www.octoparse.com/template/ebay-product-list-scraper-by-keyword)
- [eBay Scraper](https://www.octoparse.com/template/ebay-scraper)
- [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)

## Input Schema

```json
{
  "title": "Mypersonaltrainer Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "keywords": {
      "title": "Keywords (up tp 1000)",
      "description": "The keywords you want to search for on My-personaltrainer.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": [
    "dieta equilibrata"
  ]
}
```

Example 2

```json
{
  "keywords": [
    "dieta equilibrata"
  ]
}
```

Example 3

```json
{
  "keywords": [
    "dieta equilibrata"
  ]
}
```

Example 4

```json
{
  "keywords": [
    "dieta equilibrata"
  ]
}
```

Example 5

```json
{}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Descrizione": {
      "type": "string",
      "description": ""
    },
    "Img_url": {
      "type": "string",
      "description": ""
    },
    "Pagina_url": {
      "type": "string",
      "description": ""
    },
    "Parola_chiave": {
      "type": "string",
      "description": ""
    },
    "Titolo": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Mypersonaltrainer 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": "\n\t\t\t\t\t\t\t\tCosa mangiare per seguire una dieta equilibrata? Principi nutrizionali, raccomandazioni OMS e indicazioni pratiche per salute, prevenzione e...",
  "Img_url": "https://www.my-personaltrainer.it/2022/04/29/dieta-equilibrata-come-dovrebbe-essere-cosa-mangiare-_crop_resize.jpeg",
  "Pagina_url": "https://www.my-personaltrainer.it/alimentazione/cosa-e-come-si-deve-mangiare-per-una-dieta-equilibrata.html",
  "Parola_chiave": "dieta equilibrata",
  "Titolo": "Cosa e come si deve mangiare per una dieta equilibrata?"
}
```

Example 2

```json
{
  "Descrizione": "\n\t\t\t\t\t\t\t\tCosa significa seguire una dieta equilibrata? Guida pratica, principi della piramide Mediterranea Planetaria, benefici per la salute e segnali di...",
  "Img_url": "https://www.my-personaltrainer.it/2023/06/20/dieta-equilibrata_crop_resize.jpeg",
  "Pagina_url": "https://www.my-personaltrainer.it/nutrizione/dieta-equilibrata-come-si-fa-quando-non-e-equilibrata.html",
  "Parola_chiave": "dieta equilibrata",
  "Titolo": "Dieta equilibrata: come si fa? Quando NON è equilibrata?"
}
```

Example 3

```json
{
  "Descrizione": "\n\t\t\t\t\t\t\t\t1",
  "Img_url": "https://www.my-personaltrainer.it/2023/06/20/dieta-equilibrata_crop_resize.jpeg",
  "Pagina_url": "https://www.my-personaltrainer.it/nutrizione/dieta-equilibrata-come-si-fa-quando-non-e-equilibrata.html",
  "Parola_chiave": "dieta equilibrata",
  "Titolo": "Dieta equilibrata: come si fa? Quando NON è equilibrata?"
}
```

Example 4

```json
{
  "Descrizione": "\n\t\t\t\t\t\t\t\t1",
  "Img_url": "https://www.my-personaltrainer.it/2022/04/29/dieta-equilibrata-come-dovrebbe-essere-cosa-mangiare-_crop_resize.jpeg",
  "Pagina_url": "https://www.my-personaltrainer.it/alimentazione/cosa-e-come-si-deve-mangiare-per-una-dieta-equilibrata.html",
  "Parola_chiave": "dieta equilibrata",
  "Titolo": "Cosa e come si deve mangiare per una dieta equilibrata?"
}
```

Example 5

```json
{
  "Descrizione": "\n\t\t\t\t\t\t\t\t1",
  "Img_url": "https://www.my-personaltrainer.it/2025/06/20/allergia-agli-animali-come-e-quando-si-manifesta_crop_resize.jpeg",
  "Pagina_url": "https://www.my-personaltrainer.it/salute-benessere/allergia-agli-animali-come-e-quando-si-manifesta.html",
  "Parola_chiave": "allergia agli animali",
  "Titolo": "Allergia agli animali: come e quando si manifesta?"
}
```

## 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-mypersonaltrainer",
  "taskName": "Mypersonaltrainer Scraper",
  "parameters": "{\"keywords\":[\"dieta equilibrata\"]}"
}
```

## Python Example

```python
import json
import requests

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

parameters = json.loads("{\"keywords\":[\"dieta equilibrata\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "crawler-mypersonaltrainer",
        "taskName": "Mypersonaltrainer 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-mypersonaltrainer",
  "taskName": "Mypersonaltrainer Scraper",
  "parameters": "{\"keywords\":[\"dieta equilibrata\"]}"
}
JSON
```

## MCP Setup

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