Skip to content

feat: user about info#277

Open
terencedignon wants to merge 1 commit intovladkens:mainfrom
terencedignon:about-account-info
Open

feat: user about info#277
terencedignon wants to merge 1 commit intovladkens:mainfrom
terencedignon:about-account-info

Conversation

@terencedignon
Copy link
Copy Markdown

Adds support for Twitter's "about this account" feature. Returns account region, location accuracy, username change history, and verification status.

API: user_about() / user_about_raw()
CLI: twscrape user_about --username USERNAME

Tested with python examples/about_account.py and twscrape user_about --username sama

Closes #276


Example payload:

  {
    "__typename": "User",
    "core": {"screen_name": "sama", "name": "Sam Altman", "created_at": "..."},
    "about_profile": {
      "account_based_in": "United States",
      "location_accurate": true,
      "affiliate_username": "OpenAI",
      "source": "Web",
      "username_changes": {"count": "0"}
    },
    "rest_id": "1605",
    "verification_info": {
      "reason": {"verified_since_msec": "..."},
      "is_identity_verified": false
    }
  }

@terencedignon
Copy link
Copy Markdown
Author

gentle ping on this. No worries if you think this is out of scope.

Copy link
Copy Markdown

@doveppp doveppp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AccountAbout.parse has a problem:

TypeError: int_or() missing 1 required positional argument: 'key'

Comment thread twscrape/models.py
return AccountAbout(
screen_name=core.get("screen_name", ""),
name=core.get("name", ""),
rest_id=int_or(obj.get("rest_id")),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypeError: int_or() missing 1 required positional argument: 'key'

darknessest added a commit to darknessest/twscrape that referenced this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: adding support for "About this account"

2 participants