instagram

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

type Extractor struct {
	// contains filtered or unexported fields
}

Extractor implements the extractor.Extractor interface for Instagram

func New

func New() *Extractor

New creates a new Instagram extractor. It uses the browser-based fetcher by default, which drives a real headless Chromium and so bypasses Instagram's anti-bot challenges that break the legacy HTTP fetcher. The legacy fetcher remains available via instagram.NewAPIFetcher().

func (*Extractor) Extract

func (e *Extractor) Extract(ctx context.Context, url string) (*models.Media, error)

Extract extracts media from Instagram URL

func (*Extractor) Hosts

func (e *Extractor) Hosts() []string

Hosts returns the supported hosts. `www.` / `m.` / `mobile.` prefixes are normalized by the registry, so we only list the canonical form here.

func (*Extractor) Name

func (e *Extractor) Name() string

Name returns the extractor name

Jump to

Keyboard shortcuts

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