Overview
Thefavorite and unfavorite commands manage your Twitter bookmarks collection. Bookmarks are private - only you can see which tweets you’ve bookmarked.
In Twitter’s API terminology, bookmarks are referred to as “favorites”, which is different from “likes”. The CLI uses the
favorite/unfavorite commands for bookmark management.Bookmark a Tweet
Remove a Bookmark
Examples
Bookmark a Tweet
Remove a Bookmark
View Your Bookmarks
To see all your bookmarked tweets:Command Reference
Favorite (Bookmark)
Arguments:tweet_id(required): The numeric tweet ID to bookmark
Unfavorite (Remove Bookmark)
Arguments:tweet_id(required): The numeric tweet ID to remove from bookmarks
Finding Tweet IDs
You can find tweet IDs from:- Tweet URL:
https://x.com/user/status/[TWEET_ID] - Feed commands:
twitter feed,twitter search - Tweet detail:
twitter tweet <url>
Rate Limits and Anti-Detection
Private Collection: Bookmarks are private and not visible to other users. They’re perfect for saving content without publicly liking it.
Anti-Detection Features
The CLI includes several features to avoid detection:- Random delays: 1.5-4 second waits after operations
- Chrome impersonation: TLS fingerprint matching real browsers
- Transaction IDs: Dynamic generation for each request
- Exponential backoff: Automatic retry logic on rate limits
Rate Limit Guidelines
Safe usage:- Maximum: ~100 bookmarks per hour
- Recommended: 30-50 bookmarks per hour
- Burst limit: ~20 bookmarks per 15 minutes
- Wait 15-20 minutes before retrying
- The CLI will automatically retry with backoff
- Error code 88 indicates general rate limiting
Error Handling
Common Errors
Already bookmarked:The CLI automatically handles rate limits with exponential backoff (5 seconds → 10 seconds → 20 seconds) across up to 3 retries before failing.
Use Cases
Research and Curation
Save for Later
Export Bookmarks
Bookmarks vs Likes
| Feature | Bookmarks (favorite) | Likes (like) |
|---|---|---|
| Visibility | Private | Public |
| Command | twitter favorite | twitter like |
| View collection | twitter favorites | Check profile on web |
| Purpose | Save for later | Show appreciation |
| Notification to author | No | Yes |
Best Practices
- Organize with searches: Use bookmarks to save tweets from specific searches for later review
- Export regularly: Back up your bookmarks using
--json -o bookmarks.json - Clean up: Periodically remove old bookmarks with
unfavorite - Combine with filtering: Use
twitter favorites --filterto analyze your saved content - Respect rate limits: Don’t bookmark in rapid succession
