Documentation ¶
Index ¶
- Variables
- func FormatTweets(format string, tweets []Tweet)
- func FormatTweetsCSV(tweets []Tweet)
- func FormatTweetsJSON(tweets []Tweet)
- func Main(Query *string, Instance *string, Format *string)
- func Request(Query *string, Instance *string, cursor *string) io.ReadCloser
- func Scrape(responseBody io.ReadCloser, Instance *string, Format *string, cursor *string) bool
- type Attachment
- type Tweet
- type TweetStats
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FormatTweets ¶
func FormatTweetsCSV ¶
func FormatTweetsCSV(tweets []Tweet)
func FormatTweetsJSON ¶
func FormatTweetsJSON(tweets []Tweet)
Types ¶
type Attachment ¶
type Tweet ¶
type Tweet struct { ID string `json:"id"` URL string `json:"url"` Text string `json:"text"` ReplyTo string `json:"reply_to,omitempty"` Username string `json:"username"` Fullname string `json:"fullname"` Timestamp string `json:"timestamp"` Attachments []Attachment `json:"attachments"` Stats TweetStats `json:"stats"` QuoteFullname string `json:"quote_fullname,omitempty"` QuoteUsername string `json:"quote_username,omitempty"` QuoteDate string `json:"quote_date,omitempty"` QuoteID string `json:"quote_id,omitempty"` QuoteText string `json:"quote_text,omitempty"` }
Click to show internal directories.
Click to hide internal directories.