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

Ingestion support for Gist streams. #88

Closed
pedramamini opened this issue May 12, 2020 · 1 comment
Closed

Ingestion support for Gist streams. #88

pedramamini opened this issue May 12, 2020 · 1 comment
Assignees
Labels
enhancement New feature or general improvement source idea Idea for a new Source plugin

Comments

@pedramamini
Copy link
Member

For example:

https://gist.github.com/silence-is-best

@pedramamini pedramamini added the enhancement New feature or general improvement label May 12, 2020
@cmmorrow cmmorrow self-assigned this May 16, 2020
@battleoverflow battleoverflow added the source idea Idea for a new Source plugin label Nov 17, 2022
@battleoverflow
Copy link
Contributor

battleoverflow commented Nov 17, 2022

Not a perfect solution, but we now have ingestion support for GitHub gist streams by username. Unfortunately, the API for gists does not offer queries (that I could find), so I found a workaround. Instead of searching for queries, we can use usernames. It shouldn't be too difficult to use something like BS4 as an example or a custom request (q=), but this is the quickest method for obtaining gists via the API.

These changes are already merged into develop if you're interested in viewing the changes.

Here's an example of the new config.yml file:

credentials:
  - name: github-auth
    username: USERNAME
    token: TOKEN

sources:
  - name: source-name
    credentials: github-auth
    module: github_gist
    user: GitHubUsername

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or general improvement source idea Idea for a new Source plugin
Projects
None yet
Development

No branches or pull requests

3 participants