Scrapes posts from an Instagram user's profile feed including captions, media URLs, like/comment counts, timestamps and location tags. Use when user mentions scraping Instagram posts, download Instagram feed, get posts from Instagram account, IG profile posts, Instagram user posts, pull posts from Instagram, Instagram post list, get someone's Instagram content, batch download Instagram, Instagram media scraper.
username → paginated list of posts (media, caption, counts, timestamps)
browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.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 thescripts/directory, invoked viaeval "$(python scripts/xxx.py {params})".$(...)is bash syntax; it is recommended to use the bash tool for execution.
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-user-id.py '{username}')"natgeo){
"id": "787132",
"username": "natgeo",
"is_private": false
}
eval "$(python scripts/get-profile-posts.py '{user_id}' --count 12 --max-id '{cursor}')"12 (max 12)next_max_id from previous response for subsequent pages{
"items": [
{
"pk": "3900557621921709539",
"code": "DYwOA07iPmB",
"taken_at": 1779686199,
"media_type": 1,
"like_count": 45230,
"comment_count": 312,
"caption": "Caption text here...",
"thumbnail_url": "https://scontent.cdninstagram.com/...",
"video_url": null,
"location": {"id": "212988663", "name": "New York, New York"},
"username": "natgeo",
"user_id": "787132"
}
],
"more_available": true,
"next_max_id": "3890000000000000000_787132"
}
navigate https://www.instagram.com/ → wait stableeval "$(python scripts/get-user-id.py '{username}')" → extract id as user_ideval "$(python scripts/get-profile-posts.py '{user_id}' --count 12)" → collect items, note more_available and next_max_idmore_available is true:
a. eval "$(python scripts/get-profile-posts.py '{user_id}' --count 12 --max-id '{next_max_id}')" → accumulate itemsmax_id, type: cursor, start value: empty string. Next page value source: next_max_id field in response. Termination: more_available is false or next_max_id is null.result count >= 1 AND items[0].pk non-null AND items[0].code non-nullrequire_login: truemore_available: false{working-directory}/browser-act-skill-forge-memories/instagram-scraper-instagram-profile-posts.memory.md (working directory is determined by the Agent running the Skill, typically the project root or current working directory){YYYY-MM-DD}: {what happened} → {conclusion}