중고책 매입가 검색 API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
document
examples
testdata
.gitignore
.travis.yml
LICENSE
README.md
aladin.go
aladin_test.go
api.go
document.go
fumika.go
helper.go
helper_test.go
yes24.go
yes24_test.go

README.md

fumika

중고책 매입가 검색 API

Build Status

Features

Test

# (optional) download testdata 
cd testdata
python fetch.py

go test

Usage

Aladin

examples/aladin/main.go

package main

import (
	"fmt"
	"net/http"

	"github.com/if1live/fumika"
)

func main() {
	client := http.Client{}
	api := fumika.NewAladin(&client)
	isbn := "9788926790403"
	result, err := api.SearchISBN(isbn)
	if err != nil {
		panic(err)
	}

	fmt.Println("title: ", result.Title)
	fmt.Println("unit price: ", result.UnitPrice)
	fmt.Println("price best: ", result.PriceBest)
	fmt.Println("price good: ", result.PriceGood)
	fmt.Println("price normal: ", result.PriceNormal)
}
title:  기어와라! 냐루코 양 1
unit price:  6000
price best:  600
price good:  500
price normal:  400

Yes24

examples/yes24/main.go

package main

import (
	"fmt"
	"net/http"

	"github.com/if1live/fumika"
)

func main() {
	client := http.Client{}
	api := fumika.NewYes24(&client)
	isbn := "9788926790403"
	result, err := api.SearchISBN(isbn)
	if err != nil {
		panic(err)
	}

	fmt.Println("title: ", result.Title)
	fmt.Println("unit price: ", result.UnitPrice)
	fmt.Println("price best: ", result.PriceBest)
	fmt.Println("price good: ", result.PriceGood)
	fmt.Println("price normal: ", result.PriceNormal)
}
title:  기어와라! 냐루코 양 1
unit price:  6000
price best:  600
price good:  600
price normal:  500

Development Note

Build README

go get github.com/if1live/maya
maya -file=document/README.mkdn -mode=pelican > README.md