Rishikant181 / Rettiwt-API

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

Possible to search for tweets only? #371

Closed Coareal closed 9 months ago

Coareal commented 9 months ago

Using tweet.search(user) returns tweets including replies

Is it possible to filter for only the main tweets? Those that appear on the timeline

Rishikant181 commented 9 months ago

Although it's possible, but it has not been implemented in this package as of now. It's a minor addition that will be surely added in the next feature update (hopefully coming Monday).

Rishikant181 commented 9 months ago

For now, for filtering out replies, you may iterate over the returned list and pick up only those tweets whose 'replyTo' field is null/undefined. Such tweets are the original tweets and not replies.

This is a workaround. Expect the update on Monday.

Thanks for the feedback!

Rishikant181 commented 9 months ago

@Coareal The feature has been added and after some testing, will be published on Monday.

Rishikant181 commented 9 months ago

@Coareal Rettiwt-API v2.2.0 having this feature, has been released!