Documentation ¶
Index ¶
- type Author
- type Avatar
- type Aweme
- type ChaList
- type CommerceUserInfo
- type DataShareInfo
- type FeedChunk
- type Image
- type Music
- type Musician
- type OriginalMusician
- type PrivacySetting
- type PrivateTab
- type ReviewResult
- type Scraper
- func (t *Scraper) FetchUserAwemeList(userId string) ([]Aweme, error)
- func (t *Scraper) FetchUserAwemeListAfterCursor(userId string, cursor int64) ([]Aweme, error)
- func (t *Scraper) FetchUserData(userId string) (*User, error)
- func (t *Scraper) FetchUserFeed(userId string, maxCursor int64) (*FeedChunk, error)
- func (t *Scraper) FetchUserId(username string) (string, error)
- type ShareInfo
- type Statistics
- type Status
- type TabSettings
- type TextExtra
- type User
- type UserDataResponse
- type UserFeedResponse
- type UserLookup
- type Video
- type VideoControl
- type VideoIcon
- type VideoMute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Author ¶
type Author struct { Avatar168x168 Image `json:"avatar_168x168"` Avatar300x300 Image `json:"avatar_300x300"` AvatarLarger Image `json:"avatar_larger"` AvatarMedium Image `json:"avatar_medium"` AvatarThumb Image `json:"avatar_thumb"` AvatarURI string `json:"avatar_uri"` AwemeCount int `json:"aweme_count"` CoverURL []Image `json:"cover_url"` DuetSetting int `json:"duet_setting"` EnterpriseVerifyReason string `json:"enterprise_verify_reason"` FavoritingCount int `json:"favoriting_count"` FollowerCount int `json:"follower_count"` FollowingCount int `json:"following_count"` InsID string `json:"ins_id"` Language string `json:"language"` Nickname string `json:"nickname"` OriginalMusician Musician `json:"original_musician"` Region string `json:"region"` SecUID string `json:"sec_uid"` ShortID string `json:"short_id"` TotalFavorited int64 `json:"total_favorited"` UID string `json:"uid"` UniqueID string `json:"unique_id"` UniqueIDModifyTime int64 `json:"unique_id_modify_time"` UserMode int `json:"user_mode"` UserRate int `json:"user_rate"` VerificationType int `json:"verification_type"` VideoIcon Image `json:"video_icon"` }
type Aweme ¶
type Aweme struct { AwemeID string `json:"aweme_id"` Desc string `json:"desc"` CreateTime int64 `json:"create_time"` Author Author `json:"author"` Music Music `json:"music"` ChaList []ChaList `json:"cha_list"` Video Video `json:"video"` Statistics Statistics `json:"statistics"` Status Status `json:"status"` Rate int `json:"rate"` TextExtra []TextExtra `json:"text_extra"` LabelTop Image `json:"label_top"` AwemeType int `json:"aweme_type"` AuthorUserID int64 `json:"author_user_id"` IsHashTag int `json:"is_hash_tag"` Region string `json:"region"` GroupID string `json:"group_id"` DescLanguage string `json:"desc_language"` MiscInfo string `json:"misc_info"` DistributeType int `json:"distribute_type"` VideoControl VideoControl `json:"video_control"` }
type CommerceUserInfo ¶
type DataShareInfo ¶
type DataShareInfo struct {}
type OriginalMusician ¶
type PrivacySetting ¶
type PrivacySetting struct {
FollowingVisibility int `json:"following_visibility"`
}
type PrivateTab ¶
type ReviewResult ¶
type ReviewResult struct {
ReviewStatus int `json:"review_status"`
}
type Scraper ¶
type Scraper struct { APIHost string APIKey string RateLimit ratelimit.Limiter HttpClient *http.Client }
func (*Scraper) FetchUserAwemeList ¶
func (*Scraper) FetchUserAwemeListAfterCursor ¶
func (*Scraper) FetchUserFeed ¶
type Statistics ¶
type Statistics struct { AwemeID string `json:"aweme_id"` CommentCount int `json:"comment_count"` DiggCount int `json:"digg_count"` DownloadCount int `json:"download_count"` PlayCount int `json:"play_count"` ForwardCount int `json:"forward_count"` LoseCount int `json:"lose_count"` LoseCommentCount int `json:"lose_comment_count"` }
type Status ¶
type Status struct { AwemeID string `json:"aweme_id"` IsDelete bool `json:"is_delete"` AllowComment bool `json:"allow_comment"` PrivateStatus int `json:"private_status"` InReviewing bool `json:"in_reviewing"` Reviewed int `json:"reviewed"` SelfSee bool `json:"self_see"` IsProhibited bool `json:"is_prohibited"` DownloadStatus int `json:"download_status"` ReviewResult ReviewResult `json:"review_result"` VideoMute VideoMute `json:"video_mute"` }
type TabSettings ¶
type TabSettings struct {
PrivateTab PrivateTab `json:"private_tab"`
}
type User ¶
type User struct { AccountType int `json:"account_type"` Avatar168x168 Avatar `json:"avatar_168x168"` Avatar300x300 Avatar `json:"avatar_300x300"` AvatarLarger Avatar `json:"avatar_larger"` AvatarMedium Avatar `json:"avatar_medium"` AvatarThumb Avatar `json:"avatar_thumb"` AwemeCount int `json:"aweme_count"` BioSecureURL string `json:"bio_secure_url"` BioURL string `json:"bio_url"` CommerceUserInfo CommerceUserInfo `json:"commerce_user_info"` EnterpriseVerifyReason string `json:"enterprise_verify_reason"` FollowerCount int `json:"follower_count"` FollowingCount int `json:"following_count"` InsID string `json:"ins_id"` Nickname string `json:"nickname"` OriginalMusician OriginalMusician `json:"original_musician"` PrivacySetting PrivacySetting `json:"privacy_setting"` SecUID string `json:"sec_uid"` ShortID string `json:"short_id"` SignatureLanguage string `json:"signature_language"` TabSettings TabSettings `json:"tab_settings"` TotalFavorited int `json:"total_favorited"` UID string `json:"uid"` UniqueID string `json:"unique_id"` VideoIcon VideoIcon `json:"video_icon"` }
type UserDataResponse ¶
type UserDataResponse struct { Status string `json:"status"` Data UserLookup `json:"data"` }
type UserFeedResponse ¶
type UserLookup ¶
type VideoControl ¶
type VideoControl struct { AllowDownload bool `json:"allow_download"` ShowProgressBar int `json:"show_progress_bar"` DraftProgressBar int `json:"draft_progress_bar"` AllowDuet bool `json:"allow_duet"` AllowReact bool `json:"allow_react"` PreventDownloadType int `json:"prevent_download_type"` AllowDynamicWallpaper bool `json:"allow_dynamic_wallpaper"` TimerStatus int `json:"timer_status"` AllowMusic bool `json:"allow_music"` AllowStitch bool `json:"allow_stitch"` }
Click to show internal directories.
Click to hide internal directories.