# HKTVmall Scraper

Get product price, image link, product name, etc. from HKTVmall by keyword.

- Template page: [https://www.octoparse.com/template/hktvmall-scraper](https://www.octoparse.com/template/hktvmall-scraper)
- 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 13 fields, including `input_keyword`, `title`, `title_url`, `price`, `RSP`, `img_link`, `promotion_label`, `merchant`, `packing`, `salesnumber`, `reviewnumber`, `express`, `toMacau`.

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

Required. Please enter 1 keyword per line Constraints: minItems=1; maxItems=100; items.minLength=1; items.maxLength=10000.

## How to Use

### What data is collected

Collects search-result records from [HKTVmall](https://www.hktvmall.com/) with fields: `input_keyword`, `title`, `title_url`, `price`, `RSP`, `promotion_label`, `merchant`, `packing`, `salesnumber`, `reviewnumber`, `express`, `toMacau`.

### Pricing

Free of charge; no per-line fee. Octoparse plan limits may still apply.

### Input

- **keywords** (Required) – Enter 1 keyword per line. Up to 100 entries per run.

### How to use

1. Open the template and click **Try it!**.
2. Fill in the **keywords** field (see Input above).
3. Choose a local or cloud run in Octoparse and start the task.
4. Export the data – fields include `input_keyword`, `title`, `title_url`, `price`, `RSP`, `promotion_label`, `merchant`, `packing`, `salesnumber`, `reviewnumber`, `express`, `toMacau`.

### Output fields

- `input_keyword`
- `title`
- `title_url`
- `price`
- `RSP`
- `promotion_label`
- `merchant`
- `packing`
- `salesnumber`
- `reviewnumber`
- `express`
- `toMacau`

## 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": "HKTVmall Scraper 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": "Please enter 1 keyword per line",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "minItems": 1,
      "maxItems": 100,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "keywords"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "keywords": [
    "Salonpas"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "input_keyword": {
      "type": "string",
      "description": ""
    },
    "title": {
      "type": "string",
      "description": ""
    },
    "title_url": {
      "type": "string",
      "description": ""
    },
    "price": {
      "type": "string",
      "description": ""
    },
    "RSP": {
      "type": "string",
      "description": ""
    },
    "img_link": {
      "type": "string",
      "description": ""
    },
    "promotion_label": {
      "type": "string",
      "description": ""
    },
    "merchant": {
      "type": "string",
      "description": ""
    },
    "packing": {
      "type": "string",
      "description": ""
    },
    "salesnumber": {
      "type": "string",
      "description": ""
    },
    "reviewnumber": {
      "type": "string",
      "description": ""
    },
    "express": {
      "type": "string",
      "description": ""
    },
    "toMacau": {
      "type": "string",
      "description": ""
    }
  },
  "title": "HKTVmall 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
{
  "input_keyword": "Salonpas",
  "title": "Salonpas - New Salonpas 20's",
  "title_url": "https://www.hktvmall.com/hktv/en/main/DKSH-Hong-Kong-Limited/s/H1112001/Personal-Care-%26-Health/Personal-Care-%26-Health/Medicine/Pain-Patch-%26-Massage-Cream/New-Salonpas-20s/p/H0888001_S_10009785",
  "price": "HKTV\n$ 102.90",
  "RSP": "",
  "img_link": "https://cdn-media.hktvmall.com/hktv-mms/HKTV/mms/uploadProductImage/2f9e/9cb1/f770/mwUdDYSBsY20260402111911_300.jpg",
  "promotion_label": "",
  "merchant": "HealthStore",
  "packing": "10'S X 2",
  "salesnumber": "6,000+ Sold",
  "reviewnumber": "(68)",
  "express": "",
  "toMacau": ""
}
```

## 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": "hktvmall-scraper",
  "taskName": "HKTVmall Scraper",
  "parameters": "{\"keywords\":[\"Salonpas\"]}"
}
```

## Python Example

```python
import json
import requests

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

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

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

## MCP Setup

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