instagram

package
v0.0.0-...-9191452 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) feedgen.Grabber

New creates a new grabber for Instagram with specified options.

Types

type DataJSON

type DataJSON struct {
	EntryData struct {
		ProfilePage []struct {
			GraphQL struct {
				User struct {
					ID         string `json:"id"`
					Username   string `json:"username"`
					FullName   string `json:"full_name"`
					Biography  string `json:"biography"`
					ProfileURL string `json:"profile_pic_url_hd"`
					Media      struct {
						Edges []struct {
							Node     mediaNode `json:"node"`
							PageInfo pageInfo  `json:"page_info"`
						} `json:"edges"`
					} `json:"edge_owner_to_timeline_media"`
				} `json:"user"`
			} `json:"graphql"`
		} `json:"ProfilePage"`
	} `json:"entry_data"`
}

type G

type G struct {
	Source source.S
}

G is a grabber implementation for Instagram.

func (*G) Grab

func (g *G) Grab() feedgen.Feeder

Grab creates a Feeder instance and populates it with data from Instagram

type Option

type Option func(*G)

Option sets a option for the Grabber

func WithSource

func WithSource(s source.S) Option

WithSource sets a source for Grabber

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL