Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Profile ¶
type Profile struct { Avatar string Banner string Biography string Birthday string FollowersCount int FollowingCount int IsPrivate bool IsVerified bool Joined *time.Time LikesCount int Location string Name string TweetsCount int URL string UserID string Username string Website string }
Profile of twitter user.
func GetProfile ¶
GetProfile return parsed user profile.
type Tweet ¶
type Tweet struct { HTML string `json:"html"` ID string `json:"_id"` IsPin bool `json:"isPinned"` IsRetweet bool `json:"isRetweet"` Likes int `json:"likes"` PermanentURL string `json:"tweetUrl"` Photos []string `json:"photos"` Replies int `json:"replies"` Retweets int `json:"retweets"` Text string `json:"text"` TimeParsed time.Time `json:"time"` TimeCaptured time.Time `json:"capture_time"` CaptureDelay float64 `json:"capture_delay_sec"` Timestamp int64 `json:"timestamp"` URLs []string `json:"urls"` UserID string `json:"userId"` Username string `json:"username"` Videos []Video `json:"videos"` }
Tweet type.
func FetchSearchTweets ¶
FetchSearchTweets gets tweets for a given search query, via the Twitter frontend API
func FetchTweets ¶
FetchTweets gets tweets for a given user, via the Twitter frontend API.
func (*Tweet) MarshalJSON ¶ added in v0.0.3
func (*Tweet) UnmarshalJSON ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.