Overview
Thelike and unlike commands allow you to interact with tweets by adding or removing your likes (favorites).
Like a Tweet
Unlike a Tweet
Examples
Like a Tweet
Unlike a Tweet
Like from Tweet URL
You can also extract the tweet ID from a full URL:Command Reference
Like
Arguments:tweet_id(required): The numeric tweet ID
Unlike
Arguments:tweet_id(required): The numeric tweet ID
Finding Tweet IDs
You can find tweet IDs in several ways:-
From URL: The numeric ID at the end of a tweet URL
-
Using the CLI: Use
twitter feedortwitter searchto view tweets with their IDs -
Tweet detail command: Use
twitter tweet <url>to get detailed information
Rate Limits and Anti-Detection
Anti-Detection Features:
- Automatic delays of 1.5-4 seconds after each operation
- Randomized timing to appear more human-like
- Chrome browser fingerprint impersonation
- Automatic retry with exponential backoff on rate limit errors
Rate Limit Recommendations
- Maximum: ~50 likes per 15-minute window
- Recommended: Fewer than 30 likes per 15 minutes
- Wait time: If rate limited, wait at least 15-20 minutes
Error Handling
Common Errors
Already liked:Twitter’s API will return specific error codes (348, 349) for write operation rate limits. The CLI automatically translates these into user-friendly messages.
Bulk Operations
If you need to like multiple tweets:- Add delays between operations (use shell sleep)
- Keep total likes under recommended limits
- Vary your actions (don’t just like, also read feeds)
