Notice the difference between the max_id and the next_results max_id param. The thing listed as max_id is actually the latest tweet, as evidenced by its inclusion in the refresh_url field as the since_id. Grabbing the max_id out of next_results allows pagination to work properly: using the raw max_id field leads one to infinitely loop the same page.
When I get a chance I would be happy to PR a fix for this as well.
Right now, if I perform
ExTwitter.search("lol", count: 5, search_metadata: true)
, I get the following metadata payload:Notice the difference between the
max_id
and thenext_results
max_id param. The thing listed asmax_id
is actually the latest tweet, as evidenced by its inclusion in therefresh_url
field as thesince_id
. Grabbing the max_id out ofnext_results
allows pagination to work properly: using the rawmax_id
field leads one to infinitely loop the same page.When I get a chance I would be happy to PR a fix for this as well.