Using the search function with the cursor api returns the same results continually #299

Closed
opened 2014-01-06 18:17:21 -08:00 by cash · 1 comment
cash commented 2014-01-06 18:17:21 -08:00 (Migrated from github.com)

Rather than:

    if hasattr(function, 'iter_metadata'):
        since_id = content[function.iter_metadata].get('since_id_str')

it should be

    if hasattr(function, 'iter_metadata'):
        since_id = content[function.iter_metadata].get('max_id_str')

Currently, the cursor function only goes forward in time so since_id should be set to maximum id of the latest tweets.

Rather than: ``` if hasattr(function, 'iter_metadata'): since_id = content[function.iter_metadata].get('since_id_str') ``` it should be ``` if hasattr(function, 'iter_metadata'): since_id = content[function.iter_metadata].get('max_id_str') ``` Currently, the cursor function only goes forward in time so since_id should be set to maximum id of the latest tweets.
s0ckz commented 2014-06-02 16:05:03 -07:00 (Migrated from github.com)

Check if it solves your problem: https://github.com/ryanmcgrath/twython/pull/332

Check if it solves your problem: https://github.com/ryanmcgrath/twython/pull/332
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/twython#299
No description provided.