Unofficial Manganato web scraper written in Go using gocolly.
go get -u github.com/kaikaew13/manganato-api
example:
package main
import (
"fmt"
"log"
nato "github.com/kaikaew13/manganato-api"
)
func main() {
searcher := nato.NewSearcher()
mangas, err := searcher.SearchManga("Chainsaw Man")
if err != nil {
log.Panicln(err)
}
for _, manga := range *mangas {
fmt.Println(manga.ID)
fmt.Println(manga.Name)
fmt.Println(manga.Author.Name)
fmt.Println(manga.Updated)
}
}
terminal output:
dn980422
Chainsaw Man
Tatsuki Fujimoto
Updated : Dec 14,2020 - 04:53
- search mangas by name
- search specific manga by id
- search specific manga by chapter id, returns pages of that chapter
- search mangas by author id
- search mangas by genre id
- get list of the latest updated mangas (manganato's home page)
- gocolly for web scraper