twikit
twikit copied to clipboard
Get Favoriters is always empty.
Hi, I tried to get favoriters of tweet many times, it was always be empty.
my code:
class GetFavoritersService(XBaseService):
async def run(self, cookie: dict, tweet_id: str, count: int = 100):
self.x_client.set_cookies(cookie)
user = await self.x_client.user()
logger.info("user: {}", user.name)
favoriters = await self.x_client.get_favoriters(
tweet_id=tweet_id,
count=count,
)
logger.info("favoriters: {}", favoriters)
for favoriter in favoriters:
logger.info("favoriter[{}]: {}, ", favoriter.id, favoriter.name, favoriter.screen_name)
Ever find a fix for this? Seems to be the same even after updating the GQL endpoints. This also happens for retweets. I figured it was due to an invalid referrer, but even with the referrer set as f"https://x.com/{author}/status/{tweet_id}/retweets" as per a real request, I didn't notice any difference.
Currently, you can only query the favorites list under your own tweets, and cannot view the favorites list of other people's tweets.