Skip to main content

Instagram plugin for elizaOS - Python implementation for Instagram integration

Project description

elizaOS Instagram Plugin (Python)

Instagram integration for elizaOS agents.

Features

  • Instagram direct message handling
  • Post and story interactions
  • Comment management
  • Media upload support
  • User profile interactions

Installation

pip install elizaos-plugin-instagram

Configuration

The plugin requires the following environment variables:

  • INSTAGRAM_USERNAME (required): Your Instagram username
  • INSTAGRAM_PASSWORD (required): Your Instagram password
  • INSTAGRAM_VERIFICATION_CODE (optional): 2FA verification code if enabled

Usage

from elizaos_plugin_instagram import InstagramService, InstagramConfig

# Create configuration
config = InstagramConfig.from_env()

# Initialize service
service = InstagramService(config)

# Start the service
await service.start()

Event Types

The plugin emits the following event types:

  • INSTAGRAM_MESSAGE_RECEIVED - Direct message received
  • INSTAGRAM_MESSAGE_SENT - Direct message sent
  • INSTAGRAM_COMMENT_RECEIVED - Comment on post received
  • INSTAGRAM_LIKE_RECEIVED - Like on post received
  • INSTAGRAM_FOLLOW_RECEIVED - New follower

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Type checking
mypy elizaos_plugin_instagram

# Linting
ruff check elizaos_plugin_instagram
ruff format elizaos_plugin_instagram

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elizaos_plugin_instagram-2.0.0a4.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elizaos_plugin_instagram-2.0.0a4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file elizaos_plugin_instagram-2.0.0a4.tar.gz.

File metadata

File hashes

Hashes for elizaos_plugin_instagram-2.0.0a4.tar.gz
Algorithm Hash digest
SHA256 5498401b09ddd96f584661ed5afe8e86ae13780ab190d2df8607a853837ce675
MD5 37215d975435faf96a70c11bd7599d40
BLAKE2b-256 ce78e66814700c2dde96ad79bca36b3894cb40d7d50670883f55fd46300f70a0

See more details on using hashes here.

File details

Details for the file elizaos_plugin_instagram-2.0.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for elizaos_plugin_instagram-2.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 940c98357514c5195bd725d2a762be43ab5fc02f9742ad4b8275fc50d7344d2a
MD5 3b30c0ad56d31b06c42daebef353e30e
BLAKE2b-256 5b9e157ad4da55c9da6e662f4007ee82c2f753670f723bf38766e55bf0219a12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page