返回 Skill 列表
extension
分类: 数据与分析需要 API Key

Reddit 子版块情感追踪器

使用 PRAW 通过 Reddit OAuth2 API 收集子版块在过去 24 小时内的热门帖子和评论,然后通过 HuggingFace Inference API 运行批量情感评分,使用 twitter-roberta-base-sentiment 模型。将评分聚合为每日时间序列并写入 Google Sheets 以供 Looker Studio 可视化。当情感分数周环比下降超过 20 分时触发 Slack 警报。

person作者: user_3c6cb52ehubcommunity

Reddit 子版块情感追踪器

Uses the Reddit OAuth2 API via PRAW to collect top posts and comments from subreddits on a rolling 24-hour window, then runs batch sentiment scoring via HuggingFace Inference API using twitter-roberta-base-sentiment. Aggregates scores into a daily time-series written to Google Sheets for Looker Studio visualization. Fires Slack alerts when sentiment drops more than 20 points week-over-week.

Installation

Requirements and caveats from upstream:

  • A modhash is a token that the reddit API requires to help prevent
  • with new images. If only the permissions on an emoji require updating
  • Requires a string 'flair_csv' which has up to 100 lines of the form

Basic usage or getting-started notes:

  • example, t3_15bfi0 .

  • for posts. For example, casual conversation may be better sorted by new

  • example by creating a text field in their app that does not allow

  • Source: https://www.reddit.com/dev/api/

Documentation

  • https://www.reddit.com/dev/api/