Documentation
¶
Index ¶
Constants ¶
View Source
const ( MAIN_PAGE_URL = `https://soutubot.moe` API_URL = `https://soutubot.moe/api/search` )
View Source
const ( WEBKIT_BOUNDARY_PREFIX = "----WebKitFormBoundary" // +"xb1PFceXlCoUBXX8"(16) WEBKIT_BOUNDARY_SUFFIX_LEN = 16 )
View Source
const ( MATCH_SIMILARITY_THRESHOLD = 45.0 // 最大匹配度低于45,结果可能不正确\n请自行判断,或更换严格模式/其他搜图引擎来搜索 LOW_SIMILARITY_THRESHOLD = 30.0 // 被隐藏 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
Source Source `json:"source"` // "nhentai"|"ehentai"|"panda"
Page int `json:"page"`
Title string `json:"title"`
Language Language `json:"language"` // "cn"|"jp"
PagePath string `json:"pagePath"` // /g/480041/7 | .Source == "panda" => null
SubjectPath string `json:"subjectPath"` // /g/480041
PreviewImageUrl string `json:"previewImageUrl"`
Similarity float64 `json:"similarity"` // 低匹配度阈值为 30
}
type Response ¶
type Response struct {
Data []Item `json:"data"`
Id string `json:"id"` // "2025102006392555" // https://soutubot.moe/results/{.Id}
Factor float64 `json:"factor"` // 1.2
ImageUrl string `json:"imageUrl"` // "https:\/\/img.76888268.xyz\/img\/8ed83259e082ce11285d13ce38718244.webp"
SearchOption string `json:"searchOption"` // "api 1.2 Liner 64 400x"
ExecutionTime float64 `json:"executionTime"` // 耗时 (s)
}
Click to show internal directories.
Click to hide internal directories.