Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twython cursor and get_user_timeline doesn't know when to stop #365

Closed
chasrmartin opened this issue Dec 16, 2014 · 8 comments
Closed

Twython cursor and get_user_timeline doesn't know when to stop #365

chasrmartin opened this issue Dec 16, 2014 · 8 comments

Comments

@chasrmartin
Copy link

    timeline = []
    results = twitter.cursor(
        twitter.get_user_timeline
        , screen_name=customer_handle
        , count=200
        , include_entities=True
        , include_rts=1
    )
    count = 0
    for result in results:
        logger.debug("Got result, id: %s" % result['id_str'])
        count += 1
        if count > 1000: break
        timeline.append(result)

Here's some selected results:

retrieve_customer_timeline[77]: Got result, id: 524280237828231168
retrieve_customer_timeline[77]: Got result, id: 523492215642152960
retrieve_customer_timeline[77]: Got result, id: 523147764754956288
retrieve_customer_timeline[77]: Got result, id: 522931696573091841
retrieve_customer_timeline[77]: Got result, id: 522925316201644032
retrieve_customer_timeline[77]: Got result, id: 522862141448011776
retrieve_customer_timeline[77]: Got result, id: 522857627722985473
retrieve_customer_timeline[77]: Got result, id: 522823556078391296
retrieve_customer_timeline[77]: Got result, id: 522810925347123200
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
retrieve_customer_timeline[77]: Got result, id: 543084740492804096
@michaelhelmick
Copy link
Collaborator

When are you expecting results to stop?

@chasrmartin
Copy link
Author

After it retrieves a different bunch of results. If you observe above, it's repeatedly getting the same 200 messages over and over, never advancing through the timeline.

@mandarvaze
Copy link

Duplicate of #325, #299, #300 ?
There seems to be pull request #332

@eoso eoso mentioned this issue Sep 13, 2015
@ryanmcgrath
Copy link
Owner

Hmmm, this seems like it's been sitting for a bit. @michaelhelmick, am I stepping on your toes if I look into merging it this weekend? Seems like it's still a bug.

@michaelhelmick
Copy link
Collaborator

@ryanmcgrath be my guest. I wanted to cut a release by the end of this month. I just have a work deadline this week. So I'll have some time after that!

@michaelhelmick
Copy link
Collaborator

@chasrmartin Sorry for getting to this so late. Can you try @eoso PR (#386) and let me know if that solves the issue? I'll merge if so!

@RedactedCode
Copy link

RedactedCode commented Sep 5, 2017

Still experiencing this problem
Python2.7 on Linux.
The mentioned fix doesn't seem to have made it's way into the live release yet?

@michaelhelmick
Copy link
Collaborator

@RedactedCode it hasn't, waiting on @eoso to update the Pull Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants