feat: add user commands, auto-detect browser, optimize performance
- Add user/user-posts/followers/following commands - Add UserProfile model and GraphQL API methods - Add print_user_profile and print_user_table formatters - Auto-detect browser for cookies (Chrome → Edge → Firefox → Brave) - Remove --browser option from all commands - Remove cookie verification (v1.1 endpoints are gone) - Use hardcoded fallback query IDs first (skip slow JS bundle scan) - Update FEATURES from latest twitter-openapi config - Fix user-posts: add required withVoice variable - Add tweet URL links in feed output - Add error handling to all user commands
This commit is contained in:
@@ -50,3 +50,20 @@ class Tweet:
|
||||
retweeted_by: Optional[str] = None
|
||||
quoted_tweet: Optional[Tweet] = None
|
||||
score: float = 0.0
|
||||
|
||||
|
||||
@dataclass
|
||||
class UserProfile:
|
||||
id: str
|
||||
name: str
|
||||
screen_name: str
|
||||
bio: str = ""
|
||||
location: str = ""
|
||||
url: str = ""
|
||||
followers_count: int = 0
|
||||
following_count: int = 0
|
||||
tweets_count: int = 0
|
||||
likes_count: int = 0
|
||||
verified: bool = False
|
||||
profile_image_url: str = ""
|
||||
created_at: str = ""
|
||||
|
||||
Reference in New Issue
Block a user