# YouTube Community Scraper

Extract user community posts on YouTube, including post text, time, likes, comments, attached video title, and description, etc.

- Template page: [https://www.octoparse.com/template/youtube-community-scraper](https://www.octoparse.com/template/youtube-community-scraper)
- Categories: Social Media
- 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 listing pages.

## Output

The current workflow extracts 17 fields, including `Accont`, `Attached_video_description`, `Attached_video_link`, `Attached_video_title`, `Bio`, `Channel_name`, `Comment_count`, `Community_URL`, `Hashtags`, `Like_count`, `Links_in_post`, `Poll_options`, `Poll_vote_count`, `Post_URL`, `Post_date`, `Post_text`, `Subscribers`.

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

## Input

### YouTube community URL (up to 100 per run)

Required. Enter a list of YouTube community URLs to extract posts. Constraints: minItems=1; maxItems=100; items.minLength=1; items.maxLength=5000.

## How to Use

# YouTube Community Scraper

Collects channel and community-post data from YouTube channels. Returns records with attached video title, channel name, community URL, post URL, links in post, attached video link, attached video description, and post date.

## Pricing

This template is currently **free of charge** with no per-line usage fee. Octoparse plan or resource limits may still apply.

## Input

- **YouTube community URL** (Required) — Enter a list of YouTube community URLs to extract posts. **Up to 100 entries per run.**

## Output

The template returns fields including `Channel_name`, `Community_URL`, `Post_date`, `Post_text`, `Post_URL`, `Like_count`, `Comment_count`, `Hashtags`, `Links_in_post`, `Attached_video_title`, `Attached_video_description`, `Attached_video_link`, `Poll_options`, `Poll_vote_count`, `Subscribers`, `Bio`, and `Accont`.

## How to Use

1. Open YouTube Community Scraper and click **Try it!**.
2. Complete **YouTube community URL** using the formats and limits shown in the Input section.
3. Choose a local or cloud run in Octoparse and start the task.
4. Review fields (e.g., `Channel_name`, `Community_URL`, `Comment_count`), then export the rows in the format you need.

## Tips

- Test one representative value in **YouTube community URL** before submitting a large batch.
- Use `Channel_name` and `Community_URL` when checking duplicates or comparing repeated exports.

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

- [Ruliweb Community Scraper](https://www.octoparse.com/template/ruliweb-scraper)
- [YouTube Video List Scraper](https://www.octoparse.com/template/youtube-video-list-scraper)
- [YouTube Details & Comments Scraper (Free)](https://www.octoparse.com/template/youtube-details-comments-scraper-free)
- [YouTube Comments & Replies Scraper](https://www.octoparse.com/template/youtube-comments-replies-scraper)

## Input Schema

```json
{
  "title": "YouTube Community Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "youTube_community_URL": {
      "title": "YouTube community URL (up to 100 per run)",
      "description": "Enter a list of YouTube community URLs to extract posts.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      },
      "minItems": 1,
      "maxItems": 100,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "youTube_community_URL"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "youTube_community_URL": [
    "https://www.youtube.com/@MrBeast/posts",
    "https://www.youtube.com/@veritasium/posts",
    "https://www.youtube.com/@mkbhd/posts"
  ]
}
```

Example 2

```json
{
  "youTube_community_URL": [
    "https://www.youtube.com"
  ]
}
```

Example 3

```json
{
  "youTube_community_URL": [
    "fff"
  ]
}
```

Example 4

```json
{
  "youTube_community_URL": [
    "https://www.youtube.com/watch?v=9cBzYF3yIzs&t=139s"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Accont": {
      "type": "string",
      "description": ""
    },
    "Attached_video_description": {
      "type": "string",
      "description": ""
    },
    "Attached_video_link": {
      "type": "string",
      "description": ""
    },
    "Attached_video_title": {
      "type": "string",
      "description": ""
    },
    "Bio": {
      "type": "string",
      "description": ""
    },
    "Channel_name": {
      "type": "string",
      "description": ""
    },
    "Comment_count": {
      "type": "string",
      "description": ""
    },
    "Community_URL": {
      "type": "string",
      "description": ""
    },
    "Hashtags": {
      "type": "string",
      "description": ""
    },
    "Like_count": {
      "type": "string",
      "description": ""
    },
    "Links_in_post": {
      "type": "string",
      "description": ""
    },
    "Poll_options": {
      "type": "string",
      "description": ""
    },
    "Poll_vote_count": {
      "type": "string",
      "description": ""
    },
    "Post_URL": {
      "type": "string",
      "description": ""
    },
    "Post_date": {
      "type": "string",
      "description": ""
    },
    "Post_text": {
      "type": "string",
      "description": ""
    },
    "Subscribers": {
      "type": "string",
      "description": ""
    }
  },
  "title": "YouTube Community 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
{
  "Accont": "",
  "Attached_video_description": "How asbestos ended up everywhere, and why we’re still using it today. Sponsored by Ground News - Go to https://ground.news/Ve for 40% off the unlimited Vantage plan, to catch how major public...",
  "Attached_video_link": "https://www.youtube.com/watch?v=cMx139eTxoc",
  "Attached_video_title": "What does asbestos do to a person?",
  "Bio": "",
  "Channel_name": "",
  "Comment_count": "236",
  "Community_URL": "https://www.youtube.com/@veritasium/posts",
  "Hashtags": "",
  "Like_count": "1.4K",
  "Links_in_post": "https://youtu.be/cMx139eTxoc",
  "Poll_options": "",
  "Poll_vote_count": "",
  "Post_URL": "https://www.youtube.com/post/UgkxtIWAwjGL7mY_dtJC9fQX8kpPp8FsJElK",
  "Post_date": "2 months ago",
  "Post_text": "Mayor of New York City, Zohran Mamdani, releases files exposing that New Yorkers were lied to about the quality of the air after the September 11th attacks. This includes an unsafe amount of asbestos found in the area around ground zero. The online portal for these documents can be found here - https://sept11documents.cityofnewyork...\n\nAsbestos was commonly sprayed onto the steel frames of high-rise buildings built in this era as fireproofing, including the World Trade Center. When the towers collapsed, this fireproofing was pulverized, releasing huge quantities of asbestos fibers into the air over Lower Manhattan.\n\nMany of these fibers were so small that they were difficult to detect with the testing methods commonly used at the time.\n\nIf you want to find out more about why asbestos was used so widely, why it's so harmful to health, and the challenges around detecting it, we have a full video covering the topic - https://youtu.be/cMx139eTxoc",
  "Subscribers": ""
}
```

Example 2

```json
{
  "Accont": "",
  "Attached_video_description": "",
  "Attached_video_link": "",
  "Attached_video_title": "",
  "Bio": "",
  "Channel_name": "",
  "Comment_count": "",
  "Community_URL": "https://www.youtube.com/",
  "Hashtags": "",
  "Like_count": "",
  "Links_in_post": "",
  "Poll_options": "",
  "Poll_vote_count": "",
  "Post_URL": "",
  "Post_date": "",
  "Post_text": "",
  "Subscribers": ""
}
```

Example 3

```json
{
  "Accont": "",
  "Attached_video_description": "",
  "Attached_video_link": "",
  "Attached_video_title": "",
  "Bio": "",
  "Channel_name": "",
  "Comment_count": "",
  "Community_URL": "http://fff/",
  "Hashtags": "",
  "Like_count": "",
  "Links_in_post": "",
  "Poll_options": "",
  "Poll_vote_count": "",
  "Post_URL": "",
  "Post_date": "",
  "Post_text": "",
  "Subscribers": ""
}
```

Example 4

```json
{
  "Accont": "",
  "Attached_video_description": "",
  "Attached_video_link": "",
  "Attached_video_title": "",
  "Bio": "",
  "Channel_name": "",
  "Comment_count": "",
  "Community_URL": "https://www.youtube.com/watch?v=9cBzYF3yIzs&t=139s",
  "Hashtags": "",
  "Like_count": "",
  "Links_in_post": "",
  "Poll_options": "",
  "Poll_vote_count": "",
  "Post_URL": "",
  "Post_date": "",
  "Post_text": "",
  "Subscribers": ""
}
```

## 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": "youtube-community-scraper",
  "taskName": "YouTube Community Scraper",
  "parameters": "{\"youTube_community_URL\":[\"https://www.youtube.com/@MrBeast/posts\",\"https://www.youtube.com/@veritasium/posts\",\"https://www.youtube.com/@mkbhd/posts\"]}"
}
```

## Python Example

```python
import json
import requests

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

parameters = json.loads("{\"youTube_community_URL\":[\"https://www.youtube.com/@MrBeast/posts\",\"https://www.youtube.com/@veritasium/posts\",\"https://www.youtube.com/@mkbhd/posts\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "youtube-community-scraper",
        "taskName": "YouTube Community 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": "youtube-community-scraper",
  "taskName": "YouTube Community Scraper",
  "parameters": "{\"youTube_community_URL\":[\"https://www.youtube.com/@MrBeast/posts\",\"https://www.youtube.com/@veritasium/posts\",\"https://www.youtube.com/@mkbhd/posts\"]}"
}
JSON
```

## MCP Setup

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