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

final data have redundant tweets #4

Open
sepehrity opened this issue Jul 9, 2020 · 1 comment
Open

final data have redundant tweets #4

sepehrity opened this issue Jul 9, 2020 · 1 comment

Comments

@sepehrity
Copy link

Thanks for your great work!

The getTimeline and getLiked functions get redundant tweets. Related to Twitter API docs, I think we should use since_id and max_id together to fix this.

function count without duplicates
getLiked 3164 2943
getTimeline 3415 3202
sepehrity added a commit to sepehrity/twitter-interaction-circles that referenced this issue Jul 11, 2020
@duiker101
Copy link
Owner

I haven't had time to look at this yet but I am not sure what's happening but IDK if since_id would fix the issue.
For the getTimeline I am guessing a lot of duplicates could be appearing due to a user both retweeting and commenting on a post, for the liked, I am really not sure.

According to the docs, since_id is used to fetch new posts since and id, but the way the pagination works here is going down the chronological order rather than up.

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

2 participants