Documentation ¶
Index ¶
- func ExtractData(root *html.Node) []string
- func Get(ctx context.Context, username string) (*Profile, []Post, error)
- func ParseHTML(r io.Reader) (*Profile, []Post, error)
- type Comment
- type Entity
- type Identifier
- type Image
- type InteractionStatistic
- type InteractionStatisticStr
- type Location
- type Post
- type Profile
- type User
- type Video
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractData ¶
Types ¶
type Identifier ¶
type InteractionStatistic ¶
type InteractionStatisticStr ¶
type Post ¶
type Post struct { ArticleBody string `json:"articleBody"` Author User `json:"author"` Comment Comment `json:"comment"` CommentCount string `json:"commentCount"` ContentLocation *Location `json:"contentLocation"` Context string `json:"@context"` DateCreated time.Time `json:"dateCreated"` DateModified time.Time `json:"dateModified"` Headline string `json:"headline"` Identifier Identifier `json:"identifier"` Image []Image `json:"image"` InteractionStatistic []InteractionStatistic `json:"interactionStatistic"` MainEntityOfPage Entity `json:"mainEntityOfPage"` Type string `json:"@type"` URL string `json:"url"` Video []Video `json:"video"` }
type Profile ¶
type Profile struct { Context string `json:"@context"` Type string `json:"@type"` Description string `json:"description"` Author User `json:"author"` MainEntityOfPage Entity `json:"mainEntityOfPage"` Identifier Identifier `json:"identifier"` InteractionStatistic []InteractionStatisticStr `json:"interactionStatistic"` }
type User ¶
type User struct { Type string `json:"@type"` Identifier *Identifier `json:"identifier"` Image string `json:"image"` Name string `json:"name"` AlternateName string `json:"alternateName"` SameAs string `json:"sameAs"` URL string `json:"url"` InteractionStatistic *InteractionStatistic `json:"interactionStatistic"` }
type Video ¶
type Video struct { Type string `json:"@type"` UploadDate time.Time `json:"uploadDate"` Description string `json:"description"` Name string `json:"name"` Caption string `json:"caption"` Height string `json:"height"` Width string `json:"width"` ContentURL string `json:"contentUrl"` ThumbnailURL string `json:"thumbnailUrl"` Genre []json.RawMessage `json:"genre"` // TODO Keywords []json.RawMessage `json:"keywords"` // TODO InteractionStatistic []InteractionStatistic `json:"interationStatistic"` Creator User `json:"creator"` Comment []Comment `json:"comment"` CommentCount string `json:"commentCount"` IsFamilyFriendly bool `json:"isFamilyFriendly"` Mentions []User `json:"mentions"` InLanguage string `json:"inLanguage"` Duration string `json:"duration"` EmbeddedTextCaption string `json:"embeddedTextCaption"` Transcript string `json:"transcript"` }
Click to show internal directories.
Click to hide internal directories.