instagram

package
v1.31.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: OSL-3.0 Imports: 5 Imported by: 0

README

Instagram

This method is severely rate limited:

GET /p/CT-cnxGhvvO/?__a=1 HTTP/1.1
Host: www.instagram.com
User-Agent: Mozilla

Same here:

GET /tv/CT-cnxGhvvO/?__a=1 HTTP/1.1
Host: www.instagram.com
User-Agent: Mozilla

This requires authentication:

GET /api/v1/media/2665693907534674894/info/ HTTP/1.1
Host: i.instagram.com

This works, although it returns HTML, so not ideal:

GET /p/CT-cnxGhvvO/embed/ HTTP/1.1
Host: www.instagram.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36

Documentation

Index

Constants

View Source
const Origin = "https://www.instagram.com"

Variables

View Source
var Verbose bool

Functions

func ValidID added in v1.31.2

func ValidID(id string) error

instagram.com/p/CT-cnxGhvvO

Types

type Edge added in v1.31.2

type Edge struct {
	Node struct {
		Display_URL string
	}
}

type Sidecar

type Sidecar struct {
	GraphQL struct {
		Shortcode_Media struct {
			Edge_Sidecar_To_Children struct {
				Edges []Edge
			}
		}
	}
}

func NewSidecar

func NewSidecar(id string) (*Sidecar, error)

func (Sidecar) Edges added in v1.31.2

func (s Sidecar) Edges() []Edge

Jump to

Keyboard shortcuts

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