searchvideo

package
v0.0.0-...-41eba85 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalVideoInfo

func UnmarshalVideoInfo(response_body_data io.ReadCloser, keyword string, video_search_chan chan SearchVideoChanType) error

Types

type SearchVideoChanType

type SearchVideoChanType struct {
	URL      string
	FileName string
}

type TikTokVideo

type TikTokVideo struct {
	Status int `json:"status_code"`
	Data   []struct {
		Type int `json:"type"`
		Item struct {
			ID         string `json:"id"`
			Desc       string `json:"desc"`
			CreateTime int64  `json:"createTime"`
			Video      struct {
				ID            string   `json:"id"`
				Height        int      `json:"height"`
				Width         int      `json:"width"`
				Duration      int      `json:"duration"`
				Ratio         string   `json:"ratio"`
				Cover         string   `json:"cover"`
				OriginCover   string   `json:"originCover"`
				DynamicCover  string   `json:"dynamicCover"`
				PlayAddr      string   `json:"playAddr"`
				DownloadAddr  string   `json:"downloadAddr"`
				ShareCover    []string `json:"shareCover"`
				ReflowCover   string   `json:"reflowCover"`
				Bitrate       int      `json:"bitrate"`
				EncodedType   string   `json:"encodedType"`
				Format        string   `json:"format"`
				VideoQuality  string   `json:"videoQuality"`
				EncodeUserTag string   `json:"encodeUserTag"`
			} `json:"video"`
			Author struct {
				ID              string `json:"id"`
				UniqueID        string `json:"uniqueId"`
				Nickname        string `json:"nickname"`
				AvatarThumb     string `json:"avatarThumb"`
				AvatarMedium    string `json:"avatarMedium"`
				AvatarLarger    string `json:"avatarLarger"`
				Signature       string `json:"signature"`
				Verified        bool   `json:"verified"`
				SecUid          string `json:"secUid"`
				Secret          bool   `json:"secret"`
				Ftc             bool   `json:"ftc"`
				Relation        int    `json:"relation"`
				OpenFavorite    bool   `json:"openFavorite"`
				CommentSetting  int    `json:"commentSetting"`
				DuetSetting     int    `json:"duetSetting"`
				StitchSetting   int    `json:"stitchSetting"`
				PrivateAccount  bool   `json:"privateAccount"`
				DownloadSetting int    `json:"downloadSetting"`
			} `json:"author"`
			Music struct {
				ID          string `json:"id"`
				Title       string `json:"title"`
				CoverThumb  string `json:"coverThumb"`
				CoverMedium string `json:"coverMedium"`
				CoverLarge  string `json:"coverLarge"`
				AuthorName  string `json:"authorName"`
				Original    bool   `json:"original"`
				Duration    int    `json:"duration"`
				Album       string `json:"album"`
			} `json:"music"`
			Challenges []struct {
				ID            string `json:"id"`
				Title         string `json:"title"`
				Desc          string `json:"desc"`
				ProfileThumb  string `json:"profileThumb"`
				ProfileMedium string `json:"profileMedium"`
				ProfileLarger string `json:"profileLarger"`
				CoverThumb    string `json:"coverThumb"`
				CoverMedium   string `json:"coverMedium"`
				CoverLarger   string `json:"coverLarger"`
				IsCommerce    bool   `json:"isCommerce"`
			} `json:"challenges"`
			Stats struct {
				DiggCount    int `json:"diggCount"`
				ShareCount   int `json:"shareCount"`
				CommentCount int `json:"commentCount"`
				PlayCount    int `json:"playCount"`
				CollectCount int `json:"collectCount"`
			} `json:"stats"`
			DuetInfo struct {
				DuetFromID string `json:"duetFromId"`
			} `json:"duetInfo"`
			OriginalItem bool `json:"originalItem"`
			OfficalItem  bool `json:"officalItem"`
			TextExtra    []struct {
				AwemeID      string `json:"awemeId"`
				Start        int    `json:"start"`
				End          int    `json:"end"`
				HashtagName  string `json:"hashtagName"`
				HashtagID    string `json:"hashtagId"`
				Type         int    `json:"type"`
				UserID       string `json:"userId"`
				IsCommerce   bool   `json:"isCommerce"`
				UserUniqueId string `json:"userUniqueId"`
				SecUid       string `json:"secUid"`
				SubType      int    `json:"subType"`
			} `json:"textExtra"`
			Secret            bool `json:"secret"`
			ForFriend         bool `json:"forFriend"`
			Digged            bool `json:"digged"`
			ItemCommentStatus int  `json:"itemCommentStatus"`
			ShowNotPass       bool `json:"showNotPass"`
			Vl1               bool `json:"vl1"`
			ItemMute          bool `json:"itemMute"`
			AuthorStats       struct {
				FollowingCount int `json:"followingCount"`
				FollowerCount  int `json:"followerCount"`
				HeartCount     int `json:"heartCount"`
				VideoCount     int `json:"videoCount"`
				DiggCount      int `json:"diggCount"`
				Heart          int `json:"heart"`
			} `json:"authorStats"`
			PrivateItem   bool `json:"privateItem"`
			DuetEnabled   bool `json:"duetEnabled"`
			StitchEnabled bool `json:"stitchEnabled"`
			ShareEnabled  bool `json:"shareEnabled"`
			IsAd          bool `json:"isAd"`
			Collected     bool `json:"collected"`
		} `json:"item"`
		Common struct {
			DocIDStr string `json:"doc_id_str"`
		} `json:"common"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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