Versions in this module Expand all Collapse all v0 v0.0.2 Nov 21, 2023 Changes in this version + const DefaultClientTimeout + type Entry struct + Content EntryContent + EntryID string + SortIndex string + type EntryContent struct + ItemContent ItemContent + ItemType string + type FetchFailed struct + Data struct{ ... } + type GIF struct + ID string + Preview string + URL string + type ItemContent struct + HasModeratedReplies bool + TweetDisplayType string + TweetResults TweetResults + type Mention struct + ID string + Name string + Username string + type Photo struct + ID string + URL string + type Place struct + BoundingBox struct{ ... } + Country string + CountryCode string + FullName string + ID string + Name string + PlaceType string + type Profile struct + Avatar string + Banner string + Biography string + Birthday string + FollowersCount int + FollowingCount int + FriendsCount int + IsPrivate bool + IsVerified bool + Joined *time.Time + LikesCount int + ListedCount int + Location string + Name string + PinnedTweetIDs []string + TweetsCount int + URL string + UserID string + Username string + Website string + type ProfileResult struct + Error error + type Scraper struct + func New() *Scraper + func (s *Scraper) ClearCookies() + func (s *Scraper) FetchSearchProfiles(query string, maxProfilesNbr int, cursor string) ([]*Profile, string, error) + func (s *Scraper) FetchSearchTweets(query string, maxTweetsNbr int, cursor string) ([]*Tweet, string, error) + func (s *Scraper) FetchTweetIDS(userID string, maxTweetsNbr int, cursor string) ([]string, error) + func (s *Scraper) FetchTweets(user string, maxTweetsNbr int, cursor string) ([]*Tweet, string, error) + func (s *Scraper) FetchTweetsByUserID(userID string, maxTweetsNbr int, cursor string) ([]*Tweet, string, error) + func (s *Scraper) FetchTweetsByUserIDLegacy(userID string, maxTweetsNbr int, cursor string) ([]*Tweet, string, error) + func (s *Scraper) GetCookies() []*http.Cookie + func (s *Scraper) GetGuestToken() error + func (s *Scraper) GetProfile(username string) (Profile, error) + func (s *Scraper) GetTrends() ([]string, error) + func (s *Scraper) GetTweet(id string) (*Tweet, error) + func (s *Scraper) GetTweets(ctx context.Context, user string, maxTweetsNbr int) <-chan *TweetResult + func (s *Scraper) GetUserIDByScreenName(screenName string) (string, error) + func (s *Scraper) IsGuestToken() bool + func (s *Scraper) IsLoggedIn() bool + func (s *Scraper) Login(credentials ...string) error + func (s *Scraper) LoginOpenAccount() error + func (s *Scraper) Logout() error + func (s *Scraper) RequestAPI(req *http.Request, target interface{}) error + func (s *Scraper) SearchProfiles(ctx context.Context, query string, maxProfilesNbr int) <-chan *ProfileResult + func (s *Scraper) SearchTweets(ctx context.Context, query string, maxTweetsNbr int) <-chan *TweetResult + func (s *Scraper) SetCookies(cookies []*http.Cookie) + func (s *Scraper) SetProxy(proxyAddr string) error + func (s *Scraper) SetSearchMode(mode SearchMode) *Scraper + func (s *Scraper) WithClientTimeout(timeout time.Duration) *Scraper + func (s *Scraper) WithDelay(seconds int64) *Scraper + func (s *Scraper) WithReplies(b bool) *Scraper + type SearchMode int + const SearchLatest + const SearchPhotos + const SearchTop + const SearchUsers + const SearchVideos + type ThreadedConversation struct + Instructions []struct{ ... } + type Tweet struct + ConversationID string + GIFs []GIF + HTML string + Hashtags []string + ID string + InReplyToStatus *Tweet + InReplyToStatusID string + IsPin bool + IsQuoted bool + IsReply bool + IsRetweet bool + IsSelfThread bool + Likes int + Mentions []Mention + Name string + PermanentURL string + Photos []Photo + Place *Place + QuotedStatus *Tweet + QuotedStatusID string + Replies int + RetweetedStatus *Tweet + RetweetedStatusID string + Retweets int + SensitiveContent bool + Text string + Thread []*Tweet + TimeParsed time.Time + Timestamp int64 + URLs []string + UserID string + Username string + Videos []Video + Views int + func (t *Tweet) FailMapping(fail FetchFailed) + type TweetFail struct + Core struct{ ... } + HasBirdwatchNotes bool + IDStr string + LegacyTweet legacyTweet + RestID string + type TweetResult struct + Error error + type TweetResults struct + Result struct{ ... } + type Video struct + ID string + Preview string + URL string