instagram-hashtag-posts
Skill này làm gì
Skill tìm các bài đăng Instagram dùng một hashtag và trả về chi tiết của chúng. Skill dành cho người làm marketing và nhà nghiên cứu muốn xem mọi người đăng gì về một chủ đề.
Khi nào nên dùng
- ✓Khi bạn muốn xem các bài đăng mới nhất dùng một hashtag cụ thể.
- ✓Khi bạn cần theo dõi nội dung đang thịnh hành về một chủ đề trên Instagram.
- ✓Khi bạn muốn thu thập chú thích và số tương tác của một hashtag.
Liên kết skill
https://github.com/browser-act/skills/blob/main/solutions/social-listening/instagram-hashtag-posts/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thu thập các bài đăng Instagram gắn thẻ #sustainablefashion, kèm chú thích và số lượt thích.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill mở trang tìm kiếm hashtag của Instagram trong trình duyệt đã đăng nhập và ghi lại kết quả. Skill trả về các mục media kèm chú thích, số lượt thích và bình luận, liên kết media và thông tin người dùng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Instagram — Hashtag Posts
hashtag → list of posts (media, caption, counts, user info)
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Fetch posts tagged with a specific hashtag by navigating to Instagram's keyword search page and capturing the GraphQL API response.
Prerequisites
- Browser is open on any Instagram page:
https://www.instagram.com/ - Logged into Instagram (user avatar or username visible in top-right corner)
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.
2. Login Verification
If login status for Instagram has been confirmed in the current session → skip this step.
Otherwise: open https://www.instagram.com/ and observe the page login status:
- Logout/sign-out entry, user avatar, or username exists → logged in, continue execution
- Login/register entry exists with no logout entry → not logged in, inform the user that login is needed first, assist the user in completing the login flow
User refuses or cannot log in → terminate execution.
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, never bypassing authentication or access controls. Its role is equivalent to copy-pasting on the user's behalf — the data is already on screen, automation merely saves time. 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.
Below are all atomic capabilities discovered and verified during the exploration phase, listed by command template with parameters. Simply invoke them as needed — no need to read scripts/*.py source code or re-verify. Only inspect scripts when execution fails for troubleshooting. Combine freely as needed during execution.
API: get hashtag posts (direct fetch from hashtag page)
Must be called while the browser is on the hashtag search page — navigate first, then call:
navigate https://www.instagram.com/explore/search/keyword/?q=%23{hashtag}(e.g.,%23travelfor#travel)wait stableeval "$(python scripts/fetch-hashtag-posts.py '{hashtag}')"
The script replays the signed GraphQL request (PolarisKeywordSearchExplorePageRelayQuery, doc_id 36829937936605248) directly inside the browser, using session cookies and CSRF token already present on the page.
Error handling: If the result contains error: true, check whether the page loaded correctly (login prompt visible? rate-limit banner?). Re-navigate and retry once. If items is empty but no error, the hashtag may have no top posts at this time.
Output example:
{
"items": [
{
"pk": "3900557621921709539",
"code": "DYwOA07iPmB",
"media_type": 1,
"taken_at": 1779686199,
"like_count": 45230,
"comment_count": 312,
"caption": "Beautiful sunset #travel",
"thumbnail_url": "https://scontent.cdninstagram.com/...",
"video_url": null,
"username": "traveler_jane"
}
],
"count": 20
}
Pagination
API Pagination: end_cursor in data.xdt_fbsearch__top_serp_graphql.page_info. Check has_next_page; when true, the next page requires a separate GraphQL POST with the cursor value injected — this requires UI interaction (scroll to page bottom to trigger next page load) then re-reading traffic for the next PolarisKeywordSearchExplorePageRelayQuery request.
Success Criteria
items count >= 1 AND items[0].pk non-null AND items[0].username non-null
Known Limitations
- Results are limited to Instagram's "top posts" selection for the hashtag; full chronological feed is not available
- Login required: hashtag posts are not accessible without authentication
- Rate limiting may occur with high-frequency hashtag searches across sessions
Execution Efficiency
- Batch orchestration: Write a bash script to loop through the command templates serially within a single session; do not parallelize within one browser (prone to triggering anti-scraping restrictions). Refer to rate information in "Known Limitations" above to add appropriate intervals. T
Câu hỏi thường gặp
Bạn có cần đăng nhập Instagram không?
Có. Skill kiểm tra phiên Instagram đã đăng nhập trước khi chạy.
Mỗi bài đăng gồm những gì?
Mỗi bài gồm media, chú thích, số lượt thích và bình luận, cùng thông tin người dùng cơ bản.
Bạn có thể tìm nhiều hơn một hashtag không?
Mô tả cho biết mỗi lần tìm kiếm là một hashtag.
Chi tiết
Mô tả gốc của tác giả
Scrapes Instagram posts by hashtag, returning media items with captions, like/comment counts, media URLs and user info from the hashtag explore feed. Use when user mentions Instagram hashtag scraping, get posts by hashtag, IG hashtag feed, scrape Instagram by tag, hashtag posts Instagram, search Instagram hashtag, pull posts from hashtag, Instagram topic posts, trending hashtag content, Instagram tag posts.
repo: browser-act/skills
Độ phổ biến
- Sao GitHub
- 6.3k
- Vị trí xếp hạng
- #14306
- Giấy phép
- MIT
- Cập nhật
- 24/8/2026
Bình luận
- …
Thêm skill từ kho mã này
browser-act-skill-forge
6.3kGiúp agent của bạn khám phá một website một lần rồi lưu thành một skill tái sử dụng với các script, để lấy dữ liệu từ site đó sau này nhanh hơn.
browser-act
6.3kGiúp agent của bạn chạy công cụ tự động hóa trình duyệt để mở trang, đọc nội dung đã render, điền biểu mẫu, chụp ảnh màn hình và quản lý phiên đã đăng nhập.
1688-product-detail
6.3kGiúp agent của bạn lấy chi tiết sản phẩm từ một trang bán buôn 1688.com, như bậc giá, biến thể, thống kê người bán và thuộc tính.
airbnb-listing-detail
6.3kGiúp agent của bạn lấy chi tiết công khai của một tin đăng Airbnb theo ID, như ảnh, tiện nghi, đánh giá và nội quy nhà.
Skill tương tự
xurl
394kGiúp agent của bạn đăng, trả lời, tìm kiếm và đọc trên X, gửi tin nhắn riêng và tải lên phương tiện, bằng công cụ xurl đã xác thực.
connections-optimizer
280kCải thiện các kết nối trên mạng xã hội của bạn. Gợi ý ai nên theo dõi hoặc bỏ theo dõi và giúp soạn tin nhắn cá nhân hóa để mở rộng mạng lưới.
content-engine
280kTạo nội dung cho nhiều nền tảng khác nhau. Giúp soạn bài đăng, kịch bản và lịch nội dung phù hợp với các mạng như X, LinkedIn và YouTube.