kuaishou

package module
v1.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 10 Imported by: 0

README

Golang kuaishou

godoc goproxy.cn goreportcard.com deps.dev

安装

go get -v -u go.dtapp.net/kuaishou@v1.0.13

Documentation

Index

Constants

View Source
const (
	LogTable = "kuaishou"
)
View Source
const (
	Version = "1.0.13"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisResponse

type AnalysisResponse struct {
	VideoLink     string   `json:"video_link"`
	ImageLinkList []string `json:"image_link_list"`
}

type AnalysisResult

type AnalysisResult struct {
	Result AnalysisResponse // 结果
	Err    error            // 错误
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client 实例

func NewClient

func NewClient(config *ClientConfig) (*Client, error)

NewClient 创建实例化

func (*Client) Analysis

func (c *Client) Analysis(ctx context.Context, content string) *AnalysisResult

Analysis 快手解析

func (*Client) ConfigApiGormFun added in v1.0.13

func (c *Client) ConfigApiGormFun(apiClientFun golog.ApiGormFun)

ConfigApiGormFun 接口日志配置

func (c *Client) ExtractImageLink(content string) []string
func (c *Client) ExtractVideoLink(content string) string

func (*Client) GetVideoHtml

func (c *Client) GetVideoHtml(url string, cookieStr string) (string, error)
func (c *Client) GetVideoLink(url string) Response

type ClientConfig added in v1.0.6

type ClientConfig struct {
}

ClientConfig 实例配置

type Response

type Response struct {
	Link    string
	Cookies string
	Err     error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL