instagram

package
v1.32.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: OSL-3.0 Imports: 7 Imported by: 0

README

Instagram

DMCA Circumvention Violations by Mgp25 and Related Forks:

https://github.com/github/dmca/blob/master/2020/01/2020-01-22-facebook.md

Documentation

Index

Constants

View Source
const (
	Origin = "https://i.instagram.com"
)

Variables

View Source
var Verbose bool

Functions

This section is empty.

Types

type Item added in v1.32.1

type Item struct {
	Media struct {
		Video_Versions []struct {
			URL string
		}
	}
}

type Login added in v1.32.1

type Login struct {
	http.Header
}

func Decode added in v1.32.2

func Decode(r io.Reader) (*Login, error)

func NewLogin added in v1.32.1

func NewLogin(username, password string) (*Login, error)

func (Login) Encode added in v1.32.2

func (l Login) Encode(w io.Writer) error

func (Login) Item added in v1.32.1

func (l Login) Item(code string) (*Item, error)

type Query added in v1.32.3

type Query struct {
	Query_Hash string `json:"query_hash"`
	Variables  struct {
		Shortcode string `json:"shortcode"`
	} `json:"variables"`
}

func NewQuery added in v1.32.3

func NewQuery(code string) Query

func (Query) Sidecar added in v1.32.3

func (q Query) Sidecar(auth *Login) (*Sidecar, error)

If `auth` is `nil`, then anonymous request will be used.

type Sidecar

type Sidecar struct {
	Data struct {
		Shortcode_Media struct {
			Edge_Sidecar_To_Children struct {
				Edges []struct {
					Node struct {
						Display_URL string
					}
				}
			}
		}
	}
}

Jump to

Keyboard shortcuts

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