/mangarock

Go API wrapper for https://mangarock.com/

Primary LanguageGoMIT LicenseMIT

Mangarock Go API Wrapper

Build Status Coverage Status GoDoc Go Report Card

NOTICE

As announced https://mangarock.com/ will be shutdown, this library will no longer work!

Getting started

Installing

go get github.com/Girbons/mangarock

Example

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)
}

Available Methods

  • Info("mrs-series-id")
  • Pages("mrs-chapter-id")

Contribuiting

Feel free to submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details