twikit icon indicating copy to clipboard operation
twikit copied to clipboard

I get KeyError 'value' when calling get_user_tweets

Open ObiAU opened this issue 6 months ago • 3 comments

kages/twikit/client/client.py", line 1919, in get_user_tweets next_cursor = items[-1]['content']['value'] ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^

KeyError: 'value'

ObiAU avatar Jun 20 '25 14:06 ObiAU

Anyone else getting the same thing? I seem to be unable to fetch tweets at all from users.

ObiAU avatar Jun 20 '25 14:06 ObiAU

maybe error from twitter? try logging request

Anyone else getting the same thing? I seem to be unable to fetch tweets at all from users.

dwqekc avatar Jun 20 '25 22:06 dwqekc

@ObiAU Check if the account has no posts (they may have replies, but no posts or retweets per se). I have found this to be the case when the error arises.

FedericoDM avatar Jul 01 '25 19:07 FedericoDM