Rishikant181 / Rettiwt-API

A CLI tool and an API for fetching data from Twitter for free!
https://rishikant181.github.io/Rettiwt-API/
MIT License
303 stars 31 forks source link

UserService.timeline(id):Tweets from some users may not be fetched #540

Closed Pvvv closed 1 month ago

Pvvv commented 1 month ago

I used my own Twitter account to repost the following user’s tweets, https://x.com/Yizhimao_super and I called the UserService.timeline(id) method with my id, The tweet information cannot be obtained through the UserService.timeline(id) method, but User.statusesCount has increased

Rishikant181 commented 1 month ago

Any specific tweet which raised the issue?

Pvvv commented 1 month ago

Any specific tweet which raised the issue?

https://x.com/Yizhimao_super/status/1792033829420716509

Rishikant181 commented 1 month ago

Strange, I retweeted the given tweet and then immediately fetched my timeline, and the retweet shows up.

Are you using the library with an api key?

Pvvv commented 1 month ago

Strange, I retweeted the given tweet and then immediately fetched my timeline, and the retweet shows up.

Are you using the library with an api key?

yes use api key , I have reposted this https://x.com/Yizhimao_super/status/1792033829420716509 my id is "1464844738197168130" and my userName is "kelimacha1", you can use UserService.timeline(id) method with my id, then you will find the result don't have that tweet

Rishikant181 commented 1 month ago

It's being returned on your result. In the returned list of tweets, it's the Tweet at index 1. The Tweet at index 0 is always the pinned tweet. Therefore, for users who have a pinned tweet, the 1st list item the pinned tweet, followed by the rest of the timeline tweets. See remarks of user.timeline method.

Pvvv commented 1 month ago

It's being returned on your result. In the returned list of tweets, it's the Tweet at index 1. The Tweet at index 0 is always the pinned tweet. Therefore, for users who have a pinned tweet, the 1st list item the pinned tweet, followed by the rest of the timeline tweets. See remarks of user.timeline method.

I have reposted this tweet https://x.com/Yizhimao_super/status/1792033829420716509, and the user.timeline method i called, but I didn't find it in the timeline, as shown below my tweet is "https://x.com/kelimacha1" and my tweet id is "1464844738197168130" , you can use user.timeline('1464844738197168130') too, you will find that it does not exist. Finally, thank you very much for your help image

Rishikant181 commented 1 month ago

image

I'm getting your retweet as expected, it's location is at index 1 too.

image

Pvvv commented 1 month ago

image

I'm getting your retweet as expected, it's location is at index 1 too.

image

I think it's a problem with my Twitter account. I'll change my account and try again. Thank you very much for your help.