parser

package
v1.0.2-0...-44dc3ad Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Timestamp time.Time
	MediaType string
	URL       string
	IsVideo   bool
	Likes     int64
	Shortcode string
	ViewCount int64
}

Node is a single media node, image or video

type Settings

type Settings struct {
	LatestOnly bool
	Silent     bool
}

Settings defines the options for the downloaders

type User

type User struct {
	ID        int64
	Username  string
	FullName  string
	Followers int64
	Follows   int64
	Nodes     []Node
}

User represents a single instagram user with their media nodes

func ParseUser

func ParseUser(username string, settings Settings) (User, error)

ParseUser returns an User struct with all of the user's media

Jump to

Keyboard shortcuts

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