# Hacker News Comment Scraper

**Use case:** 

Scrape Hacker News comments by keyword: clean comment text, author, points, date and story ID per comment. Built for developer-sentiment analysis.

## Input

```json
{
  "query": "rust programming",
  "mode": "search",
  "outputLevel": "basic",
  "searchType": "date",
  "tags": "comment",
  "maxResults": 25,
  "expandQuery": false,
  "includeAuthorProfile": false,
  "enrichGithubLinks": false,
  "correlateGithub": false,
  "parseHiringComments": false,
  "expandThreads": false,
  "threadMaxDepth": 3,
  "threadMaxComments": 100,
  "includeInsights": false,
  "detectTrends": false,
  "trendWindowDays": 7,
  "trendMinMentions": 3,
  "trendMinGrowthPercent": 100,
  "trendMaxTerms": 50,
  "compareMode": "none",
  "autoSplitLargeQueries": false,
  "maxSplitRuns": 20,
  "alertOnNewOnly": false,
  "alertMode": "all"
}
```

## Output

```json
{
  "author": {
    "label": "Author",
    "format": "string"
  },
  "commentText": {
    "label": "Comment Text",
    "format": "string"
  },
  "points": {
    "label": "Points",
    "format": "integer"
  },
  "createdAt": {
    "label": "Created At",
    "format": "string"
  },
  "storyId": {
    "label": "Story ID",
    "format": "string"
  },
  "hnUrl": {
    "label": "HN URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Hacker News Search — Stories, Comments & Developer Sentiment](https://apify.com/ryanclinton/hackernews-search) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ryanclinton/hackernews-search) to learn more, explore other use cases, and run it yourself.