/instagram-go-scraper

Instagram Scraper for Go

Primary LanguageGoApache License 2.0Apache-2.0

Instagram Go Scraper

GoDoc Build Status

Instagram Scraper for Golang.

A package that helps you with requesting to Instagram without a key.

Installation:

Install:

$ go get -u github.com/SolidlSnake/instagram-go-scraper/instagram

Import:

import "github.com/SolidlSnake/instagram-go-scraper/instagram"

List of functions:

After import you can use following functions:

// Get account info
account, err := instagram.GetAccountByUsername("username")

// Get media info
media, err := instagram.GetMediaByCode("code")
media, err := instagram.GetMediaByURL("https://instagram.com/p/code")

// Get slice of account media
media, err := instagram.GetAccountMedia("username", limit)
// or slice of all account media
media, err := instagram.GetAllAccountMedia("username")

// Get slice of location last media
media, err := instagram.GetLocationMedia("location_id", limit)
// Get array[9] of location top media
media, err := instagram.GetLocationTopMedia("location_id")

// Get location info
location, err := instagram.GetLocationByID("location_id")

// Get slice of tag last media
media, err := instagram.GetTagMedia("tag", limit)
// Get array[9] of tag top media
media, err := instagram.GetLocationTopMedia("tag")

// Search for users (return slice of Accounts)
users, err := instagram.SearchForUsers("username")

You'll get err != nil if request return 404 or if there a parsing error.