# Pagesblanches Info Scraper

Scrape name, telephone, adress, etc from Pagesblanches.fr by keyword and location.

- Template page: [https://www.octoparse.com/template/pagesblanches_info_scraper](https://www.octoparse.com/template/pagesblanches_info_scraper)
- Categories: Directories
- Status: `PUBLISHED`
- Run mode: `CLOUD`

## Pricing

Current price: **$0.1/1,000 lines**. Billing is based on output rows; an Octoparse subscription may be required.

## 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 9 fields, including `Adresse`, `CP`, `Nom_et_titre`, `Numéro_de_téléphone_1`, `Numéro_de_téléphone_2`, `Où`, `Qui`, `Tag`, `URL_du_profil`.

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

## Input

### Keywords (up to 5,000)

Required. The keywords consist of “qui” and “où”, separated by a semicolon. Constraints: minItems=1; maxItems=5000; items.minLength=1; items.maxLength=10000.

## How to Use

## Pagesblanches Info Scraper

Collects name, telephone, address, and other fields from `Pagesblanches.fr` by keyword and location. Data is sourced from [PagesJaunes](https://www.pagesjaunes.fr/).

### Input

- **Keywords (up to 5,000)** (required): Enter one or more values, one per line.

### Output Fields

- `Qui`
- `Où`
- `Tag`
- `Nom et titre`
- `URL du profil`
- `Numéro de téléphone_1`
- `Numéro de téléphone_2`
- `CP`
- `Adresse`

### Pricing

Current price: **$0.1 / 1,000 lines**. Billing is based on the number of output lines produced by the task.

### How to Use

1. Open the template and select **Try it** or **Start**.
2. Fill in the **Keywords** field (up to 5,000 values, one per line).
3. Run the task in the cloud.
4. Review the output rows and export or process the structured data.

### Limitations

- Collects only fields shown in the Output from search results pages; does not add data that PagesJaunes does not display.
- Fields such as `Numéro de téléphone_2`, `CP`, and `Adresse` can be empty when the source record does not provide them.

### Tips

- Start with a few inputs and review the returned rows before scaling.
- Use the most specific valid **Keywords (up to 5,000)** to reduce unrelated or duplicate records.
- Use a stable identifier from the output fields as the deduplication key when available.

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

- [Pagesjaunes Business Info Scraper](https://www.octoparse.com/template/pagesjaunes-business-info-scraper)
- [Societe.com Info Scraper](https://www.octoparse.com/template/societe-scraper)
- [TripAdvisor Hôtel Info Scraper](https://www.octoparse.com/template/tripadvisor-hotel-info-scraper)
- [Airbnb.fr Hotel Info Scraper](https://www.octoparse.com/template/airbnb-fr-hotel-info-scraper)

## Input Schema

```json
{
  "title": "Pagesblanches Info Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "keywords": {
      "title": "Keywords (up to 5,000)",
      "description": "The keywords consist of “qui” and “où”, separated by a semicolon.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "minItems": 1,
      "maxItems": 5000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "keywords"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "keywords": [
    "marie;bruxelles",
    "Paul;bruxelles",
    "Pierre;bruxelles",
    "Evelyne;Bruxelles",
    "Helena;Bruxelles"
  ]
}
```

Example 2

```json
{
  "keywords": [
    "Marie Durand;Lille"
  ]
}
```

Example 3

```json
{
  "keywords": [
    "Menuiserie;Mérignac",
    "Menuiserie;Pessac",
    "Menuiserie;Gradignan",
    "Menuiserie;Talence",
    "Menuiserie;Cestas"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Adresse": {
      "type": "string",
      "description": ""
    },
    "CP": {
      "type": "string",
      "description": ""
    },
    "Nom_et_titre": {
      "type": "string",
      "description": ""
    },
    "Numéro_de_téléphone_1": {
      "type": "string",
      "description": ""
    },
    "Numéro_de_téléphone_2": {
      "type": "string",
      "description": ""
    },
    "Où": {
      "type": "string",
      "description": ""
    },
    "Qui": {
      "type": "string",
      "description": ""
    },
    "Tag": {
      "type": "string",
      "description": ""
    },
    "URL_du_profil": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Pagesblanches Info 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
{
  "Adresse": "28 Bis rue Doullay 28400 Nogent le Rotrou",
  "CP": "28400",
  "Nom_et_titre": "Service Techniques Mairie",
  "Numéro_de_téléphone_1": "02 37 29 68 90",
  "Numéro_de_téléphone_2": "",
  "Où": "bruxelles",
  "Qui": "marie",
  "Tag": "mairies",
  "URL_du_profil": "https://www.pagesjaunes.fr/pros/12370799"
}
```

Example 2

```json
{
  "Adresse": "130 boulevard Vauban 59800 Lille",
  "CP": "59800",
  "Nom_et_titre": "Florence Durand",
  "Numéro_de_téléphone_1": "03 20 92 98 51",
  "Numéro_de_téléphone_2": "",
  "Où": "Lille",
  "Qui": "Marie Durand",
  "Tag": "Dermatologue",
  "URL_du_profil": "https://www.pagesjaunes.fr/pros/51578113"
}
```

Example 3

```json
{
  "Adresse": "6 chemin Solarium 33170",
  "CP": "",
  "Nom_et_titre": "Menuiseries Grand Angle",
  "Numéro_de_téléphone_1": "05 57 71 05 96",
  "Numéro_de_téléphone_2": "06 47 56 82 16",
  "Où": "Gradignan",
  "Qui": "Menuiserie",
  "Tag": "entreprises de menuiserie +2",
  "URL_du_profil": "https://www.pagesjaunes.fr/pros/detail?code_etablissement=59080721&code_localite=L03319200&code_rubrique=521020"
}
```

## 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": "pagesblanches_info_scraper",
  "taskName": "Pagesblanches Info Scraper",
  "parameters": "{\"keywords\":[\"marie;bruxelles\",\"Paul;bruxelles\",\"Pierre;bruxelles\",\"Evelyne;Bruxelles\",\"Helena;Bruxelles\"]}"
}
```

## Python Example

```python
import json
import requests

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

parameters = json.loads("{\"keywords\":[\"marie;bruxelles\",\"Paul;bruxelles\",\"Pierre;bruxelles\",\"Evelyne;Bruxelles\",\"Helena;Bruxelles\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "pagesblanches_info_scraper",
        "taskName": "Pagesblanches Info 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": "pagesblanches_info_scraper",
  "taskName": "Pagesblanches Info Scraper",
  "parameters": "{\"keywords\":[\"marie;bruxelles\",\"Paul;bruxelles\",\"Pierre;bruxelles\",\"Evelyne;Bruxelles\",\"Helena;Bruxelles\"]}"
}
JSON
```

## MCP Setup

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