Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Many ¶
func Many(screenNames []string, maxPerScreenName int) (TweetCollection, *MultiError)
Many returns the most recent tweets for a given collection of screen names
Types ¶
type MultiError ¶
type MultiError struct {
Errors []error
}
MultiError is a collection of errors that may have occurred during a parallel operation
func (*MultiError) Error ¶
func (e *MultiError) Error() string
type TweetCollection ¶
type TweetCollection []Tweet
TweetCollection is a slice of tweets with extra functionality
func Single ¶
func Single(screenName string, maxTweets int) (collection TweetCollection, err error)
Single scrapes most recent tweets from a single user, up to a maximum
func (TweetCollection) Oldest ¶
func (tc TweetCollection) Oldest() *Tweet
Oldest returns the oldest tweet in the collection
func (TweetCollection) Subtract ¶
func (tc TweetCollection) Subtract(other TweetCollection) TweetCollection
Subtract subtracts the second collection from the first in a set-like manner
func (TweetCollection) Unique ¶
func (tc TweetCollection) Unique() TweetCollection
Unique returns a copy collection that contains only tweets with unique IDs
Click to show internal directories.
Click to hide internal directories.