tmdgusya/browsing-with-robot/threads-scraper
Claude Code and agent skill by tmdgusya/browsing-with-robot
- community
Checking that the SKILL.md file is still in the repository.
Scrape posts from Threads (threads.com) profiles. Handles login, infinite scroll, and post extraction. Use when the user wants to fetch posts from a Threads profile.
Install
npx vskill@latest install tmdgusya/browsing-with-robot/threads-scraperSKILL.md
Threads Scraper with robot
Threads requires Instagram login to view all posts on a profile. Without login, only the 2 most recent posts are visible.
Prerequisites
robotCLI must be installed and on PATH (~/go/bin/robot)- Always set PATH:
export PATH="$HOME/go/bin:$PATH"
Step 1: Start browser
If "daemon already running" error occurs:
Step 2: Login to Threads
IMPORTANT: Always ask the user for credentials using AskUserQuestion. Never hardcode or store credentials.
Login flow
Known issues with Threads login
- HTTP 500 after login: Threads often returns a server error page immediately after login. This is expected. Simply navigate away:
``bash robot navigate "https://www.threads.com/" sleep 3 `` The session/cookies are still valid despite the error.
- QR code popup: If you click the wrong element, a QR code popup ("Get the app") may appear. If this happens, re-navigate to the login page instead of trying to close it.
- Verify login success: After login, navigate to home and check for logged-in indicators:
``bash robot navigate "https://www.threads.com/" sleep 3 robot screenshot # Read the screenshot - look for "What's new?" input and "Post" button # If "Log in" button is shown at top-right, login failed ``
- Own profile check: When viewing your own profile while logged in, the page shows "Edit profile" button instead of "Follow".
Step 3: Navigate to target profile
Step 4: Extract posts
Scrolling for more posts
robot does not have a built-in scroll command. To load more posts on infinite-scroll pages:
- Option A: Use
robot clickon elements near the bottom of the visible area to trigger scroll behavior. - Option B: Take note that Threads may limit visible posts even when logged in, depending on the profile's post count.
Extract text after each scroll attempt:
Step 5: Clean up
CSS Selectors Reference (Threads)
| Element | Selector | |
|---|---|---|
| Username input | input[autocomplete='username'] | |
| Password input | input[autocomplete='current-password'] | |
| Login button | form div[role='button'] | |
| Profile tabs | Text-based: Threads, Replies, Media, Reposts |
Output format
Present extracted posts in a structured format:
Tips
- Login button selector: Use
form div[role='button']notbutton[type='submit']- Threads uses custom div-based buttons. - HTTP 500 is normal: After login, Threads briefly errors. Navigate to any page and the session works.
- Prefer `text` over `screenshot`: Text extraction is token-efficient. Only screenshot when debugging layout issues.
- Always clean up: Run
robot stopwhen finished.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/threads-scraper/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tmdgusya/browsing-with-robot/threads-scraper)