Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/camc314/tvawards
https://github.com/camc314/tvawards
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/camc314/tvawards
- Owner: camc314
- License: mit
- Created: 2021-04-22T15:42:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-23T12:45:10.000Z (over 3 years ago)
- Last Synced: 2024-06-21T12:55:51.768Z (5 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TV Awards
TV Awards is a series of packages written in Go, used to retrieve awards data from various sources such as: [The Emmys](emmys.com) and [The BAFTAs](bafta.org).
## Installation
To install the package, you need to install Go and set your Go workspace first.
1. You first need Go installed, then you can use the below Go command to install.
```
$ go get -u github.com/camc314/tvawards
```2. Import it in your code:
```go
import "github.com/camc314/tvawards
```## Quick start
The below program gets all BAFTA film awards and stores it to `./data/bafta-film-awards.json`
```go
package mainimport "github.com/camc314/tvawards"
func main() {
response, err := tvawards.GetBaftaAwards("film")if err != nil {
panic(err)
}file, _ := json.MarshalIndent(*response, "", " ")
ioutil.WriteFile("./data/bafta-film-awards.json", file, 0644)
}
``````
$ go run main.go
```## Supported Awards
- BAFTA's
## Planned Support
- Emmy's