instagram

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package instagram provides Instagram automation primitives for ghostchrome.

The DM flow uses the floating "Messages" popin available on instagram.com homepage when logged in — same flow a human would use:

  1. open instagram.com (homepage feed)
  2. click the floating "Messages" button (bottom-right bubble)
  3. click "Nouveau message" (pencil) to start a new chat
  4. type the handle in queryBox, pick the matching [role=option]
  5. click "Chat" to open the conversation
  6. type the message into the contenteditable textbox
  7. click "Envoyer"

All selectors were captured against the live instagram.com FR locale. Both FR ("Messages", "Nouveau message", "Chat", "Envoyer", "Écrire un message") and EN ("Messages", "New message", "Chat", "Send", "Message…") labels are tried.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandFactory

type CommandFactory struct {
	BuildBrowserOpts func() engine.BrowserOpts
}

CommandFactory builds the `ghostchrome instagram ...` cobra subtree.

func (*CommandFactory) Register

func (f *CommandFactory) Register(parent *cobra.Command)

Register attaches the instagram subcommand tree to the given parent.

type DMResult

type DMResult struct {
	OK        bool   `json:"ok"`
	Sent      bool   `json:"sent"`
	Handle    string `json:"handle"`
	MatchedAs string `json:"matched_as,omitempty"`
	Reason    string `json:"reason,omitempty"`
}

Jump to

Keyboard shortcuts

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