j-fbriere / squawker

An open-source privacy oriented Twitter/X client
MIT License
801 stars 16 forks source link

Retrieve more tweets on search #240

Closed Teskann closed 3 months ago

Teskann commented 4 months ago

Describe the problem

Hi,

With current version, if you search tweets, you are limited to 25 tweets and cannot display more when you scroll down to the last one.

Describe the solution

If the "infinite scroll" is too hard to implement, I think an easy fix could le to use the parameter in searchTweets in lib/client/client.dart

  static Future<TweetStatus> searchTweets(String query, bool includeReplies, {int limit = 25, String? cursor, String? cursorType, bool leanerFeeds = false, RateFetchContext? fetchContext}) async 
                                                                                          ^

We could for example add an option to chose the number of tweets to get, which would default to 25.

What do you think?

Cheers

j-fbriere commented 3 months ago

Version v3.7.8 implements this feature. By keeping scrolling there are new requests automatically made.