# Tupi Scraper by Keywords

Extract products information from Tupi

- Template page: [https://www.octoparse.com/template/tupi-scraper-con-palabras-clave](https://www.octoparse.com/template/tupi-scraper-con-palabras-clave)
- 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 7 fields, including `Codigo`, `Imagen`, `Nombre`, `Palabras_Clave`, `Precio_Contado`, `Precio_Cuotas`, `Stock`.

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

## Input

### Keywords(up to 100)

Optional. Each keyword occupies a line Constraints: minItems=1; maxItems=1000; items.minLength=1; items.maxLength=1000.

## How to Use

# Tupi Scraper by Keywords

Collects product information from [Tupi](https://www.tupi.com.py/).

## Input

- `Keywords (up to 100)` (optional): Enter one or more keywords, one per line.

## Output Fields

- `Palabras_Clave`
- `Nombre`
- `Precio_Contado`
- `Precio_Cuotas`
- `Stock`
- `Codigo`
- `Imagen`

## 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 fields listed in Output from search results pages; does not add data not displayed by Tupi.
- Fields such as `Stock`, `Codigo`, and `Imagen` may be empty if the source does not provide them.

## Tips

- Start with one or a few inputs and review returned rows before scaling.
- Use specific keywords to reduce unrelated or duplicate records.
- Use a stable identifier from output fields as deduplication key when available.

## Cost

Currently no per-line charge. Octoparse plan or resource limits may apply.

## Scheduling and Export

You can schedule recurring runs and export data to CSV, Excel, JSON, databases, or cloud storage. Scheduling and API access (via Octoparse OpenAPI or [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates)) may require a paid Octoparse plan. Keep your computer and Octoparse open for local scheduled runs.

## 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 Maps Listings Scraper (by Keywords)](https://www.octoparse.com/template/google-maps-scraper-listing-page-by-keyword)
- [Reddit Post Scraper (by Keywords)](https://www.octoparse.com/template/reddit-post-scraper-by-keywords)
- [Google Job Scraper (by Keywords)](https://www.octoparse.com/template/google-job-search)
- [Foursquare Scraper (by Keywords)](https://www.octoparse.com/template/foursquare-scraper-by-keywords)
- [Amazon Product Scraper by Keywords](https://www.octoparse.com/template/amazon-produkt-scraper-mit-schluesselwoerter)

## Input Schema

```json
{
  "title": "Tupi Scraper by Keywords input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "keywords": {
      "title": "Keywords(up to 100)",
      "description": "Each keyword occupies a line",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1000
      },
      "minItems": 1,
      "maxItems": 1000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": []
}
```

## Input JSON Example

Example 1

```json
{
  "keywords": [
    "Vinos",
    "Quesos",
    "Chocolates"
  ]
}
```

Example 2

```json
{
  "keywords": [
    "Vinos",
    "Quesos",
    "Chocolates"
  ]
}
```

Example 3

```json
{
  "keywords": [
    "Vinos",
    "Quesos",
    "Chocolates"
  ]
}
```

Example 4

```json
{
  "keywords": [
    "Vinos",
    "Quesos",
    "Chocolates"
  ]
}
```

Example 5

```json
{
  "keywords": [
    "Vinos",
    "Quesos",
    "Chocolates"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Codigo": {
      "type": "string",
      "description": ""
    },
    "Imagen": {
      "type": "string",
      "description": ""
    },
    "Nombre": {
      "type": "string",
      "description": ""
    },
    "Palabras_Clave": {
      "type": "string",
      "description": ""
    },
    "Precio_Contado": {
      "type": "string",
      "description": ""
    },
    "Precio_Cuotas": {
      "type": "string",
      "description": ""
    },
    "Stock": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Tupi Scraper by Keywords 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
{
  "Codigo": "207780",
  "Imagen": "https://www.tupi.com.py/imagen_articulo/207780__320__320__ENFRIADOR-DE-VINOS-NAPPO-8-BOTELLAS-NEE-325-?t=f96eb17-",
  "Nombre": "\n\n                        \n                        ENFRIADOR DE VINOS NAPPO 8 BOTELLAS NEE-325  ver detalles \n                        ",
  "Palabras_Clave": "Vinos",
  "Precio_Contado": "Gs. 1.059.000",
  "Precio_Cuotas": " 15x Gs. 121.000 ",
  "Stock": "En Stock"
}
```

Example 2

```json
{
  "Codigo": "96057",
  "Imagen": "https://www.tupi.com.py/imagen_articulo/96057__320__320__ENFRIADOR-DE-VINOS-BRITANIA-12-BOTELLAS-TERMOELECTRICO-PH12E-?t=4ec2fb4-1789589974",
  "Nombre": "\n\n                        \n                        ENFRIADOR DE VINOS BRITANIA 12 BOTELLAS TERMOELECTRICO PH12E  ver detalles \n                        ",
  "Palabras_Clave": "Vinos",
  "Precio_Contado": "Gs. 996.000",
  "Precio_Cuotas": "15x Gs. 107.000",
  "Stock": "En Stock"
}
```

Example 3

```json
{
  "Codigo": "96057",
  "Imagen": "https://www.tupi.com.py/imagen_articulo/96057__320__320__ENFRIADOR-DE-VINOS-BRITANIA-12-BOTELLAS-TERMOELECTRICO-PH12E-?t=4ec2fb4-",
  "Nombre": "\n\n                        \n                        ENFRIADOR DE VINOS BRITANIA 12 BOTELLAS TERMOELECTRICO PH12E  ver detalles \n                        ",
  "Palabras_Clave": "Vinos",
  "Precio_Contado": "Gs. 996.000",
  "Precio_Cuotas": "15x Gs. 107.000",
  "Stock": "En Stock"
}
```

Example 4

```json
{
  "Codigo": "MKP166680                             / 226301",
  "Imagen": "https://www.tupi.com.py/imagen_articulo/MKP166680__320__320__SET-DE-MADERA-PARA-QUESOS-?t=5ee47ee-",
  "Nombre": "\n\n                        \n                        SET DE MADERA PARA QUESOS  ver detalles \n                        ",
  "Palabras_Clave": "Quesos",
  "Precio_Contado": "Gs. 155.000",
  "Precio_Cuotas": "3x Gs. 59.000",
  "Stock": ""
}
```

Example 5

```json
{
  "Codigo": "MKP171784",
  "Imagen": "https://www.tupi.com.py/imagen_articulo/MKP171784__320__320__SACACORCHOS-PULLTEX-CRYSTALS-?t=7a79ed6-",
  "Nombre": "\n\n                        \n                        SACACORCHOS PULLTEX CRYSTALS  ver detalles \n                        ",
  "Palabras_Clave": "Vinos",
  "Precio_Contado": "Gs. 460.000",
  "Precio_Cuotas": " 6x Gs. 97.000 ",
  "Stock": ""
}
```

## 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": "tupi-scraper-con-palabras-clave",
  "taskName": "Tupi Scraper by Keywords",
  "parameters": "{\"keywords\":[\"Vinos\",\"Quesos\",\"Chocolates\"]}"
}
```

## Python Example

```python
import json
import requests

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

parameters = json.loads("{\"keywords\":[\"Vinos\",\"Quesos\",\"Chocolates\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "tupi-scraper-con-palabras-clave",
        "taskName": "Tupi Scraper by Keywords",
        "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": "tupi-scraper-con-palabras-clave",
  "taskName": "Tupi Scraper by Keywords",
  "parameters": "{\"keywords\":[\"Vinos\",\"Quesos\",\"Chocolates\"]}"
}
JSON
```

## MCP Setup

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