Documentation ¶
Index ¶
- func Download(node *Node, dir string, IsSplitDay bool, names ...string) (fullname string, b bool)
- func FindStringSubmatch(s, m string) string
- func GetDataByName(name string) (map[string][]*Node, error)
- func GetFilenameByUrl(urli string) string
- func IsExist(path string) bool
- func Mkdir(src string) error
- func SetHttpProxy(p string)
- func SetHttpSetting(setting HttpSetting)
- func SetProxySetting(setting ProxySetting)
- func SetTcpProxy(p string)
- type Config
- type Count
- type Dimensions
- type EdgeSidecarToChildren
- type Edges
- type ExtryData
- type Graphql
- type HttpRequest
- func (m *HttpRequest) Bytes() ([]byte, error)
- func (m *HttpRequest) DoRequest() (*http.Response, error)
- func (m *HttpRequest) EnableCookie() *HttpRequest
- func (m *HttpRequest) GetRequest() *http.Request
- func (m *HttpRequest) Header(key, value string) *HttpRequest
- func (m *HttpRequest) SetCsrftoken(csrftoken string) *HttpRequest
- func (m *HttpRequest) SetHttpProxy(p string) *HttpRequest
- func (m *HttpRequest) SetReferer(referer string) *HttpRequest
- func (m *HttpRequest) SetTcpProxy(p string) *HttpRequest
- func (m *HttpRequest) String() (string, error)
- func (m *HttpRequest) ToFile(filename string) error
- func (m *HttpRequest) ToJson(v interface{}) error
- func (m *HttpRequest) UserAget(user_agent string) *HttpRequest
- type HttpSetting
- type Media
- type Node
- type PageInfo
- type PostMedia
- type PostPage
- type ProfilePage
- type ProxySetting
- type QueryPage
- type ShortcodeMedia
- type User
- type Users
- type WebPage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindStringSubmatch ¶
func GetFilenameByUrl ¶
func SetHttpProxy ¶
func SetHttpProxy(p string)
func SetProxySetting ¶
func SetProxySetting(setting ProxySetting)
func SetTcpProxy ¶
func SetTcpProxy(p string)
Types ¶
type Dimensions ¶
type EdgeSidecarToChildren ¶
type EdgeSidecarToChildren struct {
Edges []*Edges `json:"edges"`
}
type ExtryData ¶
type ExtryData struct { //profile page ProfilePage []*ProfilePage `json:"ProfilePage"` //post page PostPage []*PostPage `json:"PostPage"` }
type Graphql ¶
type Graphql struct {
ShortcodeMedia *ShortcodeMedia `json:"shortcode_media"`
}
type HttpRequest ¶
type HttpRequest struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func NewRequest(method, url string, body io.Reader) *HttpRequest
func (*HttpRequest) Bytes ¶
func (m *HttpRequest) Bytes() ([]byte, error)
func (*HttpRequest) EnableCookie ¶
func (m *HttpRequest) EnableCookie() *HttpRequest
func (*HttpRequest) GetRequest ¶
func (m *HttpRequest) GetRequest() *http.Request
func (*HttpRequest) Header ¶
func (m *HttpRequest) Header(key, value string) *HttpRequest
func (*HttpRequest) SetCsrftoken ¶
func (m *HttpRequest) SetCsrftoken(csrftoken string) *HttpRequest
func (*HttpRequest) SetHttpProxy ¶
func (m *HttpRequest) SetHttpProxy(p string) *HttpRequest
func (*HttpRequest) SetReferer ¶
func (m *HttpRequest) SetReferer(referer string) *HttpRequest
func (*HttpRequest) SetTcpProxy ¶
func (m *HttpRequest) SetTcpProxy(p string) *HttpRequest
func (*HttpRequest) String ¶
func (m *HttpRequest) String() (string, error)
func (*HttpRequest) ToFile ¶
func (m *HttpRequest) ToFile(filename string) error
func (*HttpRequest) ToJson ¶
func (m *HttpRequest) ToJson(v interface{}) error
func (*HttpRequest) UserAget ¶
func (m *HttpRequest) UserAget(user_agent string) *HttpRequest
type HttpSetting ¶
type Node ¶
type Node struct { TypeName string `json:"__typename"` //GraphSidecar GraphImage GraphVideo Id string `json:"id"` ShortCode string `json:"shortcode"` Code string `json:"code"` Date int64 `json:"date"` ThumbnailSrc string `json:"thumbnail_src"` DisplaySrc string `json:"display_src"` DisplayUrl string `json:"display_url"` VideoUrl string `json:"video_url"` IsVideo bool `json:"is_video"` Comments *Count `json:"comments"` Likes *Count `json:"likes"` Dimensions *Dimensions `json:"dimensions"` }
Node
func GetDataByCode ¶
func GetDataByUrl ¶
type PostMedia ¶
type PostMedia struct { EdgeSidecarToChildren *EdgeSidecarToChildren `json:"edge_sidecar_to_children"` *Node }
type ProfilePage ¶
type ProfilePage struct {
User *User `json:"user"`
}
type ProxySetting ¶
type QueryPage ¶
type QueryPage struct { Status string `json:"status"` Media *Media `json:"media"` Users []*Users `json:"users"` }
api query response struct
type ShortcodeMedia ¶
type ShortcodeMedia struct { EdgeSidecarToChildren *EdgeSidecarToChildren `json:"edge_sidecar_to_children"` *Node }
type User ¶
type User struct { Id string `json:"id"` Username string `json:"username"` Fullname string `json:"full_name"` ProfilePicUrl string `json:"profile_pic_url"` ProfilePicId string `json:"profile_pic_id"` ProfilePicUrlHd string `json:"profile_pic_url_hd"` FollowerCount int64 `json:"follower_count"` FollowBy *Count `json:"followed_by"` Follows *Count `json:"follows"` Media *Media `json:"media"` }
type WebPage ¶
type WebPage struct { ExtryData *ExtryData `json:"entry_data"` Config *Config `json:"config"` Hostname string `json:"hostname"` CountryCode string `json:"country_code"` LanguageCode string `json:"language_code"` Platform string `json:"platform"` }
ins web request struct
func GetWebPage ¶
Click to show internal directories.
Click to hide internal directories.