Coder Social home page Coder Social logo

iqdbapi's Introduction

iqdbAPI

A Go package for anime illustration searching on iqdb.org

Usage:

f := iqdbAPI.API(iqdbAPI.Options{
	Url: "https://xxx.xxx/xxx/xxx.jpg", 
	FilePath: "X:\\XX\\xxx.jpg"})
// return in JSON

Example:

package main

import (
	"fmt"
	"iqdbAPI"
)


func main() {
	// Url: Search image using an external link
	// FilePath: Search using your local image file (Absolute Path)
	// Url and FilePath are optional parameters, you can use either of them.
	f := iqdbAPI.API(iqdbAPI.Options{
		Url: "https://i.pximg.net/img-master/img/2021/08/19/19/47/13/92104378_p0_master1200.jpg",
		FilePath: "C:\\Users\\Harry\\GolandProjects\\test\\test.jpg"})
	
	
	//Or you can call API1(url) or API2(filepath) directly
	m := iqdbAPI.API2("C:\\Users\\Harry\\GolandProjects\\test\\test.jpg")
	
	q := iqdbAPI.API1("https://i.pximg.net/img-master/img/2021/08/19/19/47/13/92104378_p0_master1200.jpg")
	
	fmt.Println(q)
	
	
	
}
// result
{"Success":true,"Results":[{"Head":"Best match","Url":"https://yande.re/post/show/834798","Titles":"Rating: s Score: 2 Tags: kimono morino_rinze sky_cappuccino the_idolm@ster the_idolm@ster_shiny_colors umbrella","Height":"2192","Width":"2824","Category":"[Safe]","Similarity":"98% similarity"},{"Head":"Additional match","Url":"https://yande.re/post/show/787237","Titles":"Rating: s Score: 64 Tags: kimono morino_rinze sky_cappuccino the_idolm@ster the_idolm@ster_shiny_colors umbrella","Height":"2192","Width":"2824","Category":"[Safe]","Similarity":"98% similarity"},{"Head":"Additional match","Url":"//danbooru.donmai.us/posts/4528058","Titles":"Rating: s Tags: 1girl absurdres black_hair eyebrows_visible_through_hair flower forest hair_bun hair_flower hair_ornament highres idolmaster idolmaster_shiny_colors japanese_clothes kimono looking_at_viewer morino_rinze nature outdoors purple_hair red_eyes sidelocks sitting sky_cappuccino solo tied_hair tree umbrella","Height":"2192","Width":"2824","Category":"[Safe]","Similarity":"98% similarity"},{"Head":"Additional match","Url":"//anime-pictures.net/pictures/view_post/719427?lang=en","Titles":"","Height":"2192","Width":"2824","Category":"[Safe]","Similarity":"98% similarity"},{"Head":"Additional match","Url":"//danbooru.donmai.us/posts/4715098","Titles":"Rating: s Score: 1 Tags: 1girl absurdres black_hair commentary eyebrows_visible_through_hair flower forest hair_bun hair_flower hair_ornament highres idolmaster idolmaster_shiny_colors japanese_clothes kimono looking_at_viewer morino_rinze nature outdoors purple_hair red_eyes sidelocks sitting sky_cappuccino solo tied_hair tree umbrella","Height":"2192","Width":"2824","Category":"[Safe]","Similarity":"97% similarity"}]}

Credits

PuerkitoBio/goquery

iqdbapi's People

Contributors

changharry avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.