tiktok

package
v1.40.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: OSL-3.0 Imports: 5 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Request

func Request(vid Video) (*http.Request, error)

Types

type NextData

type NextData struct {
	Props struct {
		PageProps struct {
			ItemInfo struct {
				ItemStruct struct {
					Author struct {
						UniqueID string
					}
					ID    string
					Video struct {
						PlayAddr string
					}
				}
			}
		}
	}
}

func (NextData) Author

func (n NextData) Author() string

func (NextData) ID

func (n NextData) ID() string

func (NextData) PlayAddr

func (n NextData) PlayAddr() string

type SigiData

type SigiData struct {
	ItemModule map[int]struct {
		Author string
		ID     string
		Video  struct {
			PlayAddr string
		}
	}
}

func (SigiData) Author

func (s SigiData) Author() string

func (SigiData) ID

func (s SigiData) ID() string

func (SigiData) PlayAddr

func (s SigiData) PlayAddr() string

type Video

type Video interface {
	Author() string
	ID() string
	PlayAddr() string
}

func NewVideo

func NewVideo(addr string) (Video, error)

Jump to

Keyboard shortcuts

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