Documentation ¶
Overview ¶
This tool provides an easy way to stream, filter and optionally react (like, follow, save image, log,...) to tweets based on topic, language and user profile.
Index ¶
- Constants
- func CliAuth(consumerKey string, consumerSecret string)
- func GetExpandedFilename(filename string) string
- func GetRandomInt(min, max int) int
- type Config
- type Filters
- type LastAction
- type Status
- func (status *Status) ContainsImage() bool
- func (status *Status) ContainsUrl() bool
- func (status *Status) Follow()
- func (status *Status) GetAllUrls() []string
- func (status *Status) GetAsJson() (string, error)
- func (status *Status) GetCreatedAt() *time.Time
- func (status *Status) GetFavouritesCount() int
- func (status *Status) GetFollowersCount() int
- func (status *Status) GetFriendsCount() int
- func (status *Status) GetID() int64
- func (status *Status) GetIDString() string
- func (status *Status) GetImageUrl() string
- func (status *Status) GetName() string
- func (status *Status) GetScreenName() string
- func (status *Status) GetText() string
- func (status *Status) IsReply() bool
- func (status *Status) IsRetweet() bool
- func (status *Status) Like()
- func (status *Status) MatchesFilter(filter *Filters) bool
- func (status *Status) SaveImageToFile(path string) (string, error)
- func (status *Status) SmartLike()
- type Stream
Constants ¶
View Source
const (
CompactTime = "2006/01/02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func GetExpandedFilename ¶ added in v0.7.0
func GetRandomInt ¶
Types ¶
type Config ¶
type Config struct { // API credentials ConsumerKey string ConsumerSecret string AccessToken string AccessSecret string // YAML config file name ConfigFile string JsonLog string SaveImages string // Tweet filter Filter *Filters }
func (*Config) SetValuesFromCliContext ¶
func (*Config) SetValuesFromFile ¶
type LastAction ¶
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) ContainsImage ¶ added in v0.7.0
func (*Status) ContainsUrl ¶
func (*Status) GetAllUrls ¶ added in v0.7.0
func (*Status) GetCreatedAt ¶
func (*Status) GetFavouritesCount ¶
func (*Status) GetFollowersCount ¶
func (*Status) GetFriendsCount ¶
func (*Status) GetIDString ¶ added in v0.7.0
func (*Status) GetImageUrl ¶ added in v0.7.0
func (*Status) GetScreenName ¶
func (*Status) MatchesFilter ¶ added in v0.6.1
func (*Status) SaveImageToFile ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.