/claim #206
Description
This PR adds a fully automated JSON workflow for X.com that scrolls the home feed and follows every user encountered in visible tweets. It leverages the execute_sequence
tool and uses XPath selectors to interact with tweet dropdowns and follow buttons dynamically.
Type of Change
- Bug fix
- [ X ] New feature
- Breaking change
- Documentation update
- Other:
How It Works
- Navigate to
https://x.com/home
- Wait for tweets to load (using
data-testid='cellInnerDiv'
)
- For each visible tweet:
- Scrolls into view
- Clicks the tweet’s dropdown caret
- Waits for the dropdown to appear
- If the dropdown includes a Follow option (and not “Unfollow”):
- Clicks Follow
- Waits briefly
- Presses Escape to close dropdown
- If Follow is not found, skips and closes dropdown
- Scrolls down to load more tweets
- Repeats steps above for
n
scroll cycles (default: 2)
- Stops if no new tweets are loaded
Video Demo
https://github.com/user-attachments/assets/31339c66-d9aa-43d0-b7c5-197ca3b6ac4a
AI Review & Code Quality
- [ X ] I asked AI to critique my PR and incorporated feedback
- [ X ] I formatted my code properly
- [ X ] I tested my changes locally
Checklist
- [ X ] Code follows project style guidelines
- [ X ] Added video demo
- [ X ] Updated documentation if needed