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

since_id support for home-timeline #19

Closed
simonw opened this issue Oct 11, 2019 · 3 comments
Closed

since_id support for home-timeline #19

simonw opened this issue Oct 11, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Collaborator

simonw commented Oct 11, 2019

Currently every time you run home-timeline we pull all 800 available tweets. We should offer to support since_id (which can be provided or can be pulled directly from the database) in order to work more efficiently if this command is executed e.g. on a cron.

@simonw simonw added the enhancement New feature or request label Oct 11, 2019
@simonw
Copy link
Collaborator Author

simonw commented Oct 11, 2019

since_id documented here: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-home_timeline

Returns results with an ID greater than (that is, more recent than) the specified ID. There are limits to the number of Tweets which can be accessed through the API. If the limit of Tweets has occured since the since_id, the since_id will be forced to the oldest ID available.

@simonw
Copy link
Collaborator Author

simonw commented Oct 16, 2019

The --since option will derive the since_id from the max ID in the timeline_tweets table:

$ twitter-to-sqlite home-timeline --since

The --since_id=xxx option lets you specify that ID directly.

@simonw simonw closed this as completed in fced2a9 Oct 16, 2019
@simonw
Copy link
Collaborator Author

simonw commented Oct 16, 2019

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

No branches or pull requests

1 participant