Alien is a simple service that I use in my LINE's bot to scrape and parse lecture schedule from web page of baak.gunadarma.ac.id
- Install golang from https://golang.org/doc/install
- Run
go get -v -u github.com/golang/dep/cmd/dep
to install dep as golang's dependency manager - Run
dep ensure -v
to install required dependencies - Run by either directly running from source:
go run cmd/alien/app.go
or by build the binary file first from Makefile:
make gobuildalien
make gorunalien
Or by simply using docker:
- Build
docker build -t alien-img .
2.Run
docker run --name alien --network host -d alien-img
You can search "jadwal kuliah" from
localhost:1981/api/jadwal-kuliah?query=your_class