Skip to content

Command for importing events #14

Activity

  1. simonw commented on Nov 29, 2019

    @simonw
    CollaboratorAuthor

    I should build the command to persist ETags and obey their polling guidelines:

    Events are optimized for polling with the "ETag" header. If no new events have been triggered, you will see a "304 Not Modified" response, and your current rate limit will be untouched. There is also an "X-Poll-Interval" header that specifies how often (in seconds) you are allowed to poll. In times of high server load, the time may increase. Please obey the header.

  2. simonw commented on Nov 30, 2019

    @simonw
    CollaboratorAuthor

    Prototype:

    pip install sqlite-utils paginate-json
    paginate-json "https://api.github.com/users/simonw/events" | sqlite-utils insert /tmp/events.db events - --pk=id
    
  3. simonw commented on Apr 14, 2020

    @simonw
    CollaboratorAuthor

    Since events include payloads with full object representations in them (for issues, repos and more) running this command every few minutes may be all it takes to keep a constant copy of everything updated in a very rate-limit friendly manner (thanks to the ETags).

  4. khimaros commented on Apr 5, 2025

    @khimaros

    basic implementation of this here: #65 however it does not honor ETag.

    also, it seems that only the most recent 1 month of events are returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions