save photo ids
This commit is contained in:
parent
deb946cf22
commit
6a929cde9c
3 changed files with 35 additions and 14 deletions
8
types.go
8
types.go
|
|
@ -3,6 +3,12 @@ package twitterscraper
|
|||
import "time"
|
||||
|
||||
type (
|
||||
// Photo type.
|
||||
Photo struct {
|
||||
ID string
|
||||
URL string
|
||||
}
|
||||
|
||||
// Video type.
|
||||
Video struct {
|
||||
ID string
|
||||
|
|
@ -22,7 +28,7 @@ type (
|
|||
IsRetweet bool
|
||||
Likes int
|
||||
PermanentURL string
|
||||
Photos []string
|
||||
Photos []Photo
|
||||
Place *Place
|
||||
QuotedStatus *Tweet
|
||||
Replies int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue