As announced https://mangarock.com/ will be shutdown, this library will no longer work!
go get github.com/Girbons/mangarock
package main
import (
"fmt"
"github.com/Girbons/mangarock"
)
func main() {
// there are 2 ways to initialize a client
// the first one is using `NewClient`
client := mangarock.NewClient()
//the other one is using `NewClientWithOptions`
options := make(map[string]string{"country":"your country"})
client := mangarock.NewClientWithOptions(options)
info, err := client.Info("mrs-serie-35593")
// SetOptions is still available
// client.SetOptions(options)
if err != nil {
// do something
}
fmt.Println(info.Data.Author)
}
- Info("mrs-series-id")
- Pages("mrs-chapter-id")
Feel free to submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details