kuaishou

package
v1.0.215 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 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) ConfigSLogClientFun added in v1.0.162

func (c *Client) ConfigSLogClientFun(apiSLogFun golog.ApiSLogFun)

ConfigSLogClientFun 日志配置

func (*Client) DefaultHttp added in v1.0.177

func (c *Client) DefaultHttp()

DefaultHttp 默认请求

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

func (*Client) SetHttp added in v1.0.177

func (c *Client) SetHttp(app *gorequest.App)

SetHttp 配置请求

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