A scraping tool for Gophers which scrapes /r/AnimeThemes, a simple and consistent repository of anime opening and ending themes.
It uses Colly.
Installation
go get github.com/Fefefo/anime-themes-scraper
Project using this repo
- fefegobot Telegram bot where you can inline search any opening by english or japanese title
Structs
type Anime struct {
IDAnime int
Year int
NameJap string
NameEng string
MalLink string
Songs []animeSong
}
type animeSong struct {
Title string
Link string
Version string
Episodes string
Notes string
}
type List []Anime
Example
func main() {
list := scraper.GetAnimeList()
list = list.SelectByBothNames("Assassination Classroom")
fmt.Println(list[0].Songs[0].Link)
}