Closed pfigel closed 11 years ago
Thanks a lot.
It seems that for some hashtags, fetching 10 * 100 tweets won't give us enough links to work with.
I've found another solution - it's possible to add a filter to the Search API call so it only returns tweets with links. Pull request is on its way. At this point the code responsible for paginating through the search results is not really needed anymore, tho it's still (theoretically) possible that the first 100 tweets all contained the same link (or at least less than the number of links we need to render the page), so I guess it doesn't hurt anybody to leave it in there.
Thanks. I think the real issue is that the Search API only gives you results from a few days back (I think I once read something about t-7 days), so that of course limits the number of links you can get, depending on the hashtag.
After parsing the Search API results the number of links will be checked and if there aren't enough links yet, we'll try to get more tweets. We're using Search API's
max_id
param to retrieve only tweets tweeted before the last results (i.e. paginate over the results).Search API requests are limited to 10 for every hashtag right now as we don't want to send too many requests (this is configurable through
maxSearchApiRequests
)