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.0a5.tar.gz (8.3 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.0a5-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for elizaos_plugin_instagram-2.0.0a5.tar.gz
Algorithm Hash digest
SHA256 d2a745cff76aab9359094f7970d20559301a00ebd6b748bae56735c33857f734
MD5 c6f0d2f735d3b7d9a4e165427ee68868
BLAKE2b-256 d9d3e2e0db2c1fbd4f69c3b5d7ad9ced0169c37aa74ec3bf8223920d3dc8c49c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for elizaos_plugin_instagram-2.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 265b3942ae655959fce8f8c7355609842b33cd8f2560ebdddc7ab41d519c8b99
MD5 801312c1a56014e94d62bc118a949688
BLAKE2b-256 4b4d7cca7b798f2ec60b6c96b9cbf70f083b91028d8d3b8520cb9a6c9ce689b4

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