/social-media-scraping:instagram-post-commentsfrom social-media-scraping
Fetches comments from an Instagram post including comment text, username, timestamp, like count and reply count using cursor-based pagination. Requires browser login session.
Ships in social-media-scraping. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
post shortcode or media ID → paginated list of comments
All process output to user (progress updates, process notifications) follows the user's language.
Fetch comments for a specific Instagram post using the internal comments API with cursor-based pagination.
https://www.instagram.com/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.
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:
User refuses or cannot log in → terminate execution.
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.
eval "$(python scripts/get-media-id.py '{shortcode}')"
Parameters:
instagram.com/p/BwrsO1Bho2N/ → BwrsO1Bho2N)Output example:
{
"media_id": "3900557621921709539",
"shortcode": "BwrsO1Bho2N",
"media_type": 1,
"username": "natgeo",
"taken_at": 1779686199
}
eval "$(python scripts/get-post-comments.py '{media_id}' --min-id '{cursor}')"
Parameters:
next_min_id from previous response for subsequent pagesOutput example:
{
"comments": [
{
"pk": "17857015000000001",
"text": "Amazing photo!",
"username": "john_doe",
"user_id": "123456789",
"created_at": 1779686500,
"like_count": 42,
"reply_count": 3
}
],
"has_more_comments": true,
"next_min_id": "17857015000000001"
}
navigate https://www.instagram.com/ → wait stableeval "$(python scripts/get-media-id.py '{shortcode}')" → extract media_ideval "$(python scripts/get-post-comments.py '{media_id}')" → collect comments, note has_more_comments and next_min_idhas_more_comments is true:
a. eval "$(python scripts/get-post-comments.py '{media_id}' --min-id '{next_min_id}')" → accumulate commentsAPI Pagination: min_id, type: cursor, start value: empty string. Next page value source: next_min_id field in response. Termination: has_more_comments is false or next_min_id is null.
result count >= 1 AND comments[0].text non-null AND comments[0].username non-null
require_login: true without authenticationPath: {working-directory}/browser-act-skill-forge-memories/instagram-scraper-instagram-post-comments.memory.md (working directory is determined by the Agent running the Skill, typically the project root or current working directory)
Before execution: If the file exists, read it first — it records unexpected situations encountered during past executions (e.g., a strategy has become ineffective); adjust strategy order accordingly.
After execution: If an unexpected situation is encountered (strategy became ineffective, page redesigned, anti-scraping upgraded, better path discovered), append a line:
{YYYY-MM-DD}: {what happened} → {conclusion}
Normal execution does not write to the file. Do not record what keywords were used or how many results were returned — those are task outputs, not experience.
What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/browser-automation统一自动化入口。覆盖浏览器自动化(Playwright)和 Windows 桌面应用自动化(OpenReverse)。
浏览器场景:打开网页、点击、填表、爬取、截图、自动化登录、渗透页面交互。
桌面场景:操作 IDA/x64dbg 等 GUI 工具、Windows UI Automation、视觉驱动交互、桌面应用网络抓包。
触发关键词:浏览器自动化、桌面自动化、打开网页、填表、爬取、截图、自动化登录、Playwright、agent-browser、headless、OpenReverse、UIA、CUA、桌面操作、Windows 自动化。
/browser-extension-reverseUse for authorized reverse engineering of browser extensions (Chrome/Firefox) including manifest analysis, background workers, and extension-based credential or traffic logic recovery./chrome-extensionsBuild and publish Chrome Extensions using Manifest V3 best practices. Use this skill whenever the user asks to create, modify, debug, or understand Chrome browser extensions, add-ons, or anything involving the Chrome Extensions API. Trigger on mentions of: 'Chrome extension', 'browser extension', 'manifest.json', 'content script', 'service worker' (in browser context), 'popup' (in browser extension context), 'side panel', 'chrome.* API', 'declarativeNetRequest', 'omnibox', 'context menu' (in extension context), 'userScripts', 'user script', 'script manager', or any request to build functionality that integrates with the Chrome browser UI. Also trigger for publishing to the Chrome Web Store: 'publish extension', preparing an extension for publishing, responding to a review rejection, writing permission justifications, or drafting a privacy policy.
npx claudepluginhub skillmds/skillmd --plugin social-media-scrapingOther plugins' skills for the same job