intelmq.bots.collectors.github_api package

Submodules

intelmq.bots.collectors.github_api.collector_github_contents_api module

GITHUB contents API Collector bot

param ‘basic_auth_username’:

github Basic authentication username (REQUIRED)

param ‘basic_auth_password’:

github Basic authentication password (REQUIRED)

param ‘repository’:

only one format (‘<author>/<repo>’) is acceptable (REQUIRED)

param ‘extra_fields’:

comma-separated list of fields to extract from file (DEFAULT = [])

param ‘regex’:

file regex (DEFAULT = ‘*.json’)

intelmq.bots.collectors.github_api.collector_github_contents_api.BOT

alias of GithubContentsAPICollectorBot

class intelmq.bots.collectors.github_api.collector_github_contents_api.GithubContentsAPICollectorBot(*args, **kwargs)

Bases: GithubAPICollectorBot

Collect files from a GitHub repository via the API. Optionally with GitHub credentials.

extra_fields = None
init()
process_request()

Requests github API with specific path and functionality

regex: str = None
repository: str = None

Module contents