eleurent / twitter-graph

Fetch and visualize the graph of your Twitter friends and followers.
392 stars 46 forks source link

"Search" and "likes" mode do not use all available APIs #25

Open nadesai opened 2 years ago

nadesai commented 2 years ago

Both modes only pass apis[0] into the relevant method, even when multiple APIs are available.

For "search" mode, this may make sense, since the number of tweets returned by the search is likely bounded by the 7-day search limit. However, for a particularly popular query and a high max_count, this bound may be very high and API reuse could help speed up the query.

There is no time bound on API queries for favorites, and here it definitely makes sense to allow for multiple API usage.

I don't know exactly how the Twitter API rate limiting works for such queries, so the above may be entirely invalid.

eleurent commented 2 years ago

I completely agree! It should be quite straightforward to implement, I think, similarly to what is done for friendships.