twitter_openapi_python icon indicating copy to clipboard operation
twitter_openapi_python copied to clipboard

Implementation of Twitter internal API (Twitter graphql API) in Python with data validation by pydantic

Results 7 twitter_openapi_python issues
Sort by recently updated
recently updated
newest added
trafficstars

When I use "from twitter_openapi_python import TwitterOpenapiPython", it has error about "ImportError: cannot import name 'TypeGuard' from 'typing' (E:\Environment\Anaconda\lib\typing.py)".Coulr you tell me your typing's version?

Hi, I wanna scrap a lot of username ( The purpose is just to check the account is banned ) so my code is: ``` def is_banned(username: str) -> bool:...

Hi, I think the whole thing stopped working. If I analyze the UserTweetsAndReplies inside the network tab for example there is no longer a timelineV2 thing at all.

https://github.com/fa0311/twitter-openapi-typescript/issues/114

### 🐛 Description When using **twitter_openapi_python v0.0.41** or **v0.0.42**, API calls such as `get_tweet_result_by_rest_id()` raise a `KeyError` because Twitter no longer returns the header `"x-connection-hash"`. Error traceback: ``` File ".../site-packages/twitter_openapi_python/core/api_utils.py",...

Summary Twitter’s internal API stopped returning the `x-connection-hash` header for at least `get_likes` responses around 2025‑11‑04. The helper [`twitter_openapi_python.utils.api.build_header`](https://github.com/fa0311/twitter_openapi_python/blob/64cc3699ef2163e1847321b4f18794116d7aa48a/twitter_openapi_python/twitter_openapi_python/utils/api.py#L259C9-L259C54) unconditionally reads `headers["x-connection-hash"]`, so the call now raises KeyError in normal...

I ran into this issue today: https://github.com/iSarabjitDhiman/XClientTransaction/issues/25 I upgraded to version 1.0.1, but then I had to apply the suggested workaround too: https://github.com/iSarabjitDhiman/XClientTransaction/issues/25#issuecomment-3386555601