# Douban book short comments with star ratings (sentiment data)

**Use case:** 

Collect short Douban (豆瓣) book comments, each with the reader's 1-5 star rating, rating label, helpful-vote count and date: Chinese text already labelled for sentiment. As set: The Little Prince (小王子), at most 100 comments (~$0.50). Swap in any popular book or album URL (books and music only; for films use subject_reviews). No login, no cookie.

## Input

```json
{
  "mode": "subject_comments",
  "subjectUrls": [
    "https://book.douban.com/subject/1084336/"
  ],
  "searchQuery": "三体",
  "searchType": "all",
  "maxResults": 100,
  "maxRepliesPerTopic": 50,
  "deltaMode": false,
  "fetchFullReviewBody": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "commentId": {
    "label": "Comment ID",
    "format": "string"
  },
  "subjectName": {
    "label": "Subject",
    "format": "string"
  },
  "subjectType": {
    "label": "Type",
    "format": "string"
  },
  "content": {
    "label": "Content",
    "format": "string"
  },
  "rating": {
    "label": "Stars",
    "format": "number"
  },
  "ratingLabel": {
    "label": "Rating label",
    "format": "string"
  },
  "authorUsername": {
    "label": "Author",
    "format": "string"
  },
  "publishedAtIso": {
    "label": "Published",
    "format": "string"
  },
  "stats": {
    "label": "Votes",
    "format": "object"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Douban Pro Scraper — Reviews, Discussions & Subject Data Actor is ready to run with the inputs already set for "Douban book short comments with star ratings (sentiment data)". [Sign up or log in](https://console.apify.com/create-task-from-example/0BdtVoShok6budV1U) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Douban book short comments with star ratings (sentiment data)" task

The Douban Pro Scraper — Reviews, Discussions & Subject Data Actor will start running based on the input automatically. You can also change all the input fields, like mode, subject urls, and more, to match your specific use case.

### 3. Receive the "Douban book short comments with star ratings (sentiment data)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as comment id, subject, type, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Douban book short comments with star ratings (sentiment data)" task via API](https://apify.com/zhorex/douban-scraper.md).

## About this Actor

This example demonstrates how to use [Douban Pro Scraper — Reviews, Discussions & Subject Data](https://apify.com/zhorex/douban-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zhorex/douban-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/zhorex/douban-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
