← 返回
未分类 Key 中文

Hacker News Poster

Post, comment, and interact on Hacker News. Use when the user asks to submit a Show HN, post a story, comment on an HN thread, edit a comment, or update an H...
在 Hacker News 上发布、评论和互动。用户请求提交 Show HN、发布故事、在 HN 帖子评论、编辑评论或更新 H... 时使用。
saikatkumardey saikatkumardey 来源
未分类 clawhub v1.0.5 1 版本 100000 Key: 需要
★ 0
Stars
📥 307
下载
💾 0
安装
1
版本
#latest

概述

Hacker News Poster

Submit stories, comment on threads, edit comments, and update profiles on Hacker News.

Setup

Required Environment Variables

VariableRequiredDescription
---------------------------------
HN_USERNAMEYesHacker News username
HN_PASSWORDYesHacker News password
HN_COOKIE_FILENoCookie storage path (defaults to ~/.hn_cookies.txt)

Security Note

Session cookies are stored in plaintext at HN_COOKIE_FILE (or ~/.hn_cookies.txt). These are standard HN session tokens. Delete the file to clear the session.

CLI

All commands go through scripts/hn.py. Always login first per session.

# login (reads HN_USERNAME/HN_PASSWORD from env)
python3 scripts/hn.py login

# submit a link post
python3 scripts/hn.py submit --title "Show HN: My Tool" --url "https://example.com"

# submit a text post (Ask HN, etc.)
python3 scripts/hn.py submit --title "Ask HN: Question?" --text "body text here"

# comment on a story or reply to a comment
python3 scripts/hn.py comment --parent 12345678 --text "your comment"

# edit a comment (only within HN's edit window)
python3 scripts/hn.py edit --id 12345678 --text "updated comment"

# update profile about section
python3 scripts/hn.py profile --username youruser --about "your bio"

All commands output JSON on success ({"ok": true, ...}) and print errors to stderr.

Notes

  • HN rate-limits submissions and comments. If you get a rate limit error, wait a few minutes.
  • Comments can only be edited within ~2 hours of posting.
  • The submit command returns the new item id and url on success.
  • Session cookies are stored in ~/.hn_cookies.txt to avoid re-authenticating on every command. Delete this file to clear the session.
  • For reading HN (search, top stories, comments), use the existing hacker-news skill or the HN API directly. This skill is write-only.

Combining with the read-only HN skill

  1. use the hacker-news skill to browse/search stories and find interesting threads
  2. use this skill to login and post/comment

版本历史

共 1 个版本

  • v1.0.5 当前
    2026-05-12 05:42 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

humanizer-zh

liuxy951129-cpu
去除文本中的 AI 生成痕迹。适用于编辑或审阅文本,使其听起来更自然、更像人类书写。 基于维基百科的"AI 写作特征"综合指南。检测并修复以下模式:夸大的象征意义、 宣传性语言、以 -ing 结尾的肤浅分析、模糊的归因、破折号过度使用、三段
★ 57 📥 28,585
content-creation

Marketing Skills

jchopard69
{"answer":"获取23个营销模块,包含CRO、SEO、文案、分析、发布、广告及社媒的清单、框架与现成交付物。"}
★ 142 📥 30,473
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 892 📥 203,998