一键导入
binance-square-scraper
用 browser-harness 抓取币安广场 (Binance Square) 热点话题、高讨论帖子、热搜币种,并生成带可点击跳转链接的 HTML 报告。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
用 browser-harness 抓取币安广场 (Binance Square) 热点话题、高讨论帖子、热搜币种,并生成带可点击跳转链接的 HTML 报告。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Direct browser control via CDP. Use when the user wants to automate, scrape, test, or interact with web pages. Connects to the user's already-running Chrome.
Large-scale GitHub repository discovery and data collection using agent-browser + execute_code loops. Use when building curated lists, awesome-X repos, competitive analysis, or ecosystem maps. Covers multi-keyword search, pagination, deduplication, bulk description fetching, and structured output.
Create Hermes plugins that hook into the agent lifecycle (post_llm_call, pre_tool_call, on_session_end, etc.). Covers plugin structure, available hooks, and macOS notification pattern.
抓取币安广场(Binance Square)今日热点话题和高讨论度帖子,生成带可点击跳转链接的 HTML 热点报告,保存到 ~/Documents/Hermes/。
文化体系、仪式、亲属关系、信仰系统和民族志方法专家——构建有生活气息而非凭空捏造的、文化上连贯自洽的社会
自然地理与人文地理、气候系统、制图学和空间分析专家——构建地理上连贯自洽的世界,使地形、气候、资源和聚落模式在科学上合理
| name | binance-square-scraper |
| description | 用 browser-harness 抓取币安广场 (Binance Square) 热点话题、高讨论帖子、热搜币种,并生成带可点击跳转链接的 HTML 报告。 |
| tags | ["binance","crypto","scraping","browser-harness"] |
用户要求抓取币安广场热点、热门帖子、讨论度排名等。
js() helper 直接返回 None,必须用 cdp("Runtime.evaluate", expression="...", returnByValue=True) 提取 DOM 数据。wait_for_load() 会无限挂起,改用 goto(url) + time.sleep(8) 等待渲染。new_tab(url) 后需再次调用 time.sleep(8),不能依赖 load 事件。帖子原文: https://www.binance.com/zh-CN/square/post/{postId}
话题页: https://www.binance.com/zh-CN/square/hashtag/{encodedTopic}
用户主页: https://www.binance.com/zh-CN/square/profile/{handle}
恐惧贪婪: https://www.binance.com/zh-CN/square/fear-and-greed-index
热门话题: https://www.binance.com/zh-CN/square/trends
交易对: https://www.binance.com/zh-CN/trade/{COIN}_USDT
合约: https://www.binance.com/zh-CN/futures/{COIN}USDT
# Step 1: 导航并等待渲染
new_tab("https://www.binance.com/zh-CN/square")
time.sleep(8)
# Step 2: 用 cdp Runtime.evaluate 提取文本
text = cdp("Runtime.evaluate",
expression="document.body.innerText.substring(0, 5000)",
returnByValue=True)
content = text['result']['value']
# Step 3: 提取所有链接(含帖子/话题/交易对)
links_raw = cdp("Runtime.evaluate", expression="""
(function() {
const links = [];
document.querySelectorAll('a').forEach(a => {
if (a.href && a.href.length > 10) {
links.push({href: a.href, text: (a.innerText || '').trim().substring(0, 80)});
}
});
return JSON.stringify(links.slice(0, 60));
})()
""", returnByValue=True)
links = json.loads(links_raw['result']['value'])
# Step 4: 滚动获取更多帖子
cdp("Runtime.evaluate", expression="window.scrollBy(0, 2000)", returnByValue=True)
time.sleep(3)
# 再次抓取链接...
从 innerText 中可提取:
次浏览 和 人讨论中 的段落热度上升 标记 + 价格 + 涨跌幅从链接列表中可提取:
/square/post/{id} → 帖子原文 URL/square/hashtag/{encoded} → 话题页 URL/trade/{COIN}_USDT → 交易页 URL输出 HTML 报告,保存到 ~/Documents/Hermes/,要求:
js() helper 对 Binance Square 无效,永远返回 None。必须走 cdp() 路径。encodeURIComponent 或直接从链接列表里取。connecting through a SOCKS proxy requires python-socks。修复:在 harness 的 uv venv 中安装 python-socks。--headless=new + /tmp 临时目录启动:直接用真实 user-data-dir 会报 "requires non-default data directory"。BU_CDP_WS 环境变量。/tmp/chromedebug 路径不在 browser-harness PROFILES 自动发现列表中,必须手动设置 BU_CDP_WS 环境变量或写入 DevToolsActivePort 文件。nohup chrome --headless=new --remote-debugging-port=9222 --user-data-dir=/tmp/chromedebug ... & → sleep 5 → WS=$(curl json/version | parse wsUrl) → BU_CDP_WS="$WS" browser-harness < script.py