Documentation
¶
Index ¶
- func RedirectUrl(originalUrl, locationHeader string) (string, error)
- func TwitterToMD(archiveDir, OutputDir string) error
- type Entities
- type ExtendedEntities
- type HashTag
- type Media
- type Mention
- type Metadata
- type OEmbed
- type Symbol
- type Tweet
- type Tweets
- type Url
- type Variant
- type Variants
- type VideoInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedirectUrl ¶
RedirectUrl returns a valid full URL from an original URL and a "Location" Header. It support local redirection on same host.
func TwitterToMD ¶
Types ¶
type ExtendedEntities ¶
type ExtendedEntities struct {
Media []Media
}
type Media ¶
type Media struct {
// Type can be "photo", "animated_gif", "video"
Type string
Url string
MediaUrl string `json:"media_url"`
VideoInfo VideoInfo `json:"video_info"`
}
Media filename is TweetID-FilePartOfTheMediaUrl
type OEmbed ¶
type OEmbed struct {
EmbedType string `json:"type"`
URL string
AuthorName string `json:"author_name"`
AuthorURL string `json:"author_url"`
HTML string
Width int
Height int
CacheAge string `json:"cache_age"`
ProviderName string `json:"provider_name"`
ProviderURL string `json:"provider_url"`
Version string
}
type Tweet ¶
type Tweet struct {
Id string `json:"id_str"`
FullText string `json:"full_text"`
Lang string
Retweeted bool
FavoriteCount string `json:"favorite_count"`
RetweetCount string `json:"retweet_count"`
CreatedAt string `json:"created_at"`
ReplyToTweetId string `json:"in_reply_to_status_id_str"`
ReplyToUser string `json:"in_reply_to_screen_name"`
ClientLink string `json:"source"`
Entities Entities
ExtendedEntities ExtendedEntities `json:"extended_entities"`
Truncated bool
Timestamp time.Time
}
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
mget
command
|
|
|
twitter-to-md
command
|
|
|
pkg
|
|
|
metadata
Metadata package is a set of tools to parse HTML pages to extract their metadata.
|
Metadata package is a set of tools to parse HTML pages to extract their metadata. |
Click to show internal directories.
Click to hide internal directories.