kuaishou

package
v1.0.112 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogTable = "kuaishou"
)

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) ConfigApiClientFun added in v1.0.52

func (c *Client) ConfigApiClientFun(apiClientFun golog.ApiClientFun)

ConfigApiClientFun 日志配置

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

func (*Client) GetLog added in v1.0.52

func (c *Client) GetLog() *golog.ApiClient

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.52

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