Documentation
¶
Overview ¶
Package instagram extracts captions and transcripts from Instagram video URLs (reels, video posts, and IGTV) by parsing Instagram URLs and delegating audio transcription to the shared mediadl core.
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 extracts Instagram video transcripts by parsing Instagram URLs and delegating to the shared mediadl core.
func NewExtractorWithConfig ¶
func NewExtractorWithConfig( sttConfig config.STTConfig, openRouterConfig config.OpenRouterConfig, instagramConfig config.InstagramConfig, ) *Extractor
NewExtractorWithConfig constructs an extractor with explicit STT provider and Instagram network configuration.
func (*Extractor) Extract ¶
func (extractor *Extractor) Extract(ctx context.Context, rawURL string, options mediadl.ExtractOptions) (*mediadl.Result, error)
Extract fetches metadata, caption, and transcript for an Instagram video URL. The document body is the post caption followed by the spoken transcript. When no transcript can be produced but a caption exists, it degrades to a caption-only document instead of failing.