threads-keyword-search
它能做什么
这项技能查找与某个关键词或话题标签匹配的 Threads 帖子,并返回其互动详情。适合想了解人们正在讨论什么话题的营销人员和研究人员。
适用场景
- ✓当你想查看关于某个话题的最新 Threads 帖子时。
- ✓当你需要长期追踪 Threads 上某个话题标签的时候。
- ✓当你想收集提及某个品牌或词语的 Threads 帖子时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/social-listening/threads-keyword-search/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我找出本周关于远程办公的 Threads 热门帖子,并显示点赞数和评论数。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能会按你设定的关键词和排序方式,打开 Threads 搜索页面。它读取页面中已嵌入的结果,并返回每条帖子及其互动详情。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Threads — Keyword & Hashtag Search
keyword + sort filter → list of matching posts with engagement metrics
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Search Threads for posts matching a keyword or hashtag and extract the results from SSR-embedded JSON, with support for top/recent sort ordering.
Prerequisites
- A browser is open and connected via browser-act
- No login required for public search results (unauthenticated: typically 17-18 results per query, no pagination)
Pre-execution Checks
1. Tool Readiness
If browser-act has been confirmed available in the current session → skip this step.
Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.
Capability Components
This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page. JS code is encapsulated in Python files under the
scripts/directory, invoked viaeval "$(python scripts/xxx.py {params})".$(...)is bash syntax; it is recommended to use the bash tool for execution.
SSR: Extract keyword search results
Navigate to the search page with the keyword and sort filter, then extract all results embedded in the initial HTML:
navigate https://www.threads.com/search/?q={keyword}&serp_type={filter}{keyword}: URL-encoded search term or hashtag (e.g.,AIor%23AIfor#AI){filter}:top(default, most relevant) orrecent(chronologically newest)
wait stableeval "$(python scripts/extract-search-results.py '{keyword}' --filter {filter})"
Output example:
{
"keyword": "AI",
"filter": "top",
"posts": [
{
"id": "3936653356768062022", // post internal ID (pk)
"code": "DZyvcdEl-W1", // post short code for URL
"url": "https://www.threads.com/@flower_popy/post/DZyvcdEl-W1",
"text": "AI is changing everything...", // post text content, null if no caption
"taken_at": 1781926571, // Unix timestamp of post creation
"like_count": 34, // number of likes
"reply_count": 6, // number of direct replies
"repost_count": 0, // number of reposts
"quote_count": 0, // number of quote posts
"is_reply": false, // true if this post is a reply
"media_type": 19, // 1=photo, 2=video, 8=carousel, 19=text-only
"has_media": false, // true if post contains image/video/carousel
"user": {
"pk": "14803522782",
"username": "flower_popy",
"full_name": "Flower",
"is_verified": false
}
}
],
"count": 17,
"page_info": {
"end_cursor": null,
"has_next_page": false,
"has_previous_page": false,
"start_cursor": null
}
}
Error handling: If error: true is returned, check that the search page loaded correctly by verifying the URL contains the query parameter. If searchResults not found, the page may have failed to render SSR data — retry navigate and wait stable once. If count: 0, no posts matched the keyword.
SSR: Hashtag search
Hashtag search uses the same URL pattern. Prefix keyword with #:
navigate https://www.threads.com/search/?q=%23{hashtag}&serp_type={filter}- Example:
%23AIfor#AI
- Example:
wait stableeval "$(python scripts/extract-search-results.py '#AI' --filter top)"
The # prefix in the keyword argument is for labeling only; the URL encoding %23 is what Threads uses to identify hashtag searches.
Enum Parameters
[DOM] filter — values: top (most relevant/popular posts), recent (newest posts first). Set via --filter argument and serp_type URL parameter.
Pagination
Pagination is not available for unauthenticated access on the search endpoint (has_next_page: false is returned regardless of result volume). Results are limited to approximately 17-18 posts per query without login. For broader coverage, run multiple searches with related keywords.
Success Criteria
result.count >= 1 and result.posts[0].id != null and result.posts[0].user.username != null
Known Limitations
- Unauthenticated access: no pagination; approximately 17-18 results per keyword
- Date filtering is not supported as a URL p
常见问题
我需要登录 Threads 吗?
不需要。描述中说明,公开搜索结果无需登录即可读取。
我能得到多少条结果?
描述中说明,未登录时每次搜索约返回 17 或 18 条结果,且不支持翻页。
我可以对结果排序吗?
可以。你可以按热门或最新排序。
详情
作者的原始描述
Searches Threads posts by keyword or hashtag and returns matching posts with engagement metrics, extracted from SSR-embedded JSON. Use when user asks to search Threads posts, find Threads content by topic, scrape Threads search results, collect Threads posts about a keyword, monitor Threads hashtag activity, pull Threads posts mentioning a term, gather Threads content by hashtag, search for posts on Threads, extract Threads search feed, get trending posts on Threads, find Threads discussions about a subject, or fetch recent or top Threads posts by keyword.
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14312
- 许可证
- MIT
- 更新时间
- 2026/8/24
评论
- …
同一仓库的更多技能
browser-act-skill-forge
6.3k帮你的智能体探索一次网站,并保存一个带脚本的可复用技能,使之后从该网站提取数据更快。
browser-act
6.3k帮你的智能体运行浏览器自动化工具,打开页面、读取渲染后的内容、填写表单、截图,并管理已登录的会话。
1688-product-detail
6.3k帮你的智能体从 1688.com 批发页面提取商品详情,例如价格阶梯、规格变体、卖家统计数据和属性。
airbnb-listing-detail
6.3k帮你的智能体根据 ID 获取 Airbnb 房源的公开详情,例如照片、设施、评分和房屋规则。