An open API service indexing awesome lists of open source software.

https://github.com/alextanhongpin/go-github-scraper

Github Scraper written in Go to compare against the previous version written in Node
https://github.com/alextanhongpin/go-github-scraper

github github-scraper golang

Last synced: 12 months ago
JSON representation

Github Scraper written in Go to compare against the previous version written in Node

Awesome Lists containing this project

README

          

# go-github-scraper

A Github Scraper and recommendation engine written in `Go`, to replace the previous version written in NodeJS (TypeScript).

## Development

Create a `.env` that contains minimum the following environment variables:

```.env
GITHUB_TOKEN=
DB_NAME=
DB_HOST=
DB_USER=
DB_AUTH=
DB_PASS=
```

## Start

```bash
$ make start
```

## Build Docker Image

```bash
$ make docker
```

## Tracing

Using __opencensus__ to add __jaeger__ tracing capabilities:

![tracing.png](./assets/tracing.png)

Additional metadata (key-value pairs) can be added for more information:

![additional-metadata.png](./assets/additional-metadata.png)

## Stats

```bash
-------------------------------------------------------------------------------
Language Files Lines Code Comments Blanks
-------------------------------------------------------------------------------
Dockerfile 1 56 29 11 16
Go 66 5788 4572 241 975
Makefile 1 40 29 1 10
Markdown 1 41 41 0 0
YAML 1 35 21 12 2
-------------------------------------------------------------------------------
Total 70 5960 4692 265 1003
-------------------------------------------------------------------------------
```