Skip to main content

🔥 Fastest & Simplest Python Package For Instagram Automation

Project description

🤖 Ensta - Simple Instagram API

PyPI PyPI - Python Version Downloads Twitter Share

This package lets you use Instagram's Internal Web API through simple functions and classes. Ensta uses Instagram's Original Web API to scrape data which makes it a reliable choice over other third-party scrapers. This library mainly focuses on Simplicity & Reliability.

Two type of classes are supported - Guest & Host.

Installation

To install this package, run the below command in a terminal window:

$ pip install ensta --upgrade

🧔🏻‍♂️ Guest Mode

This mode doesn't require login and can be used to fetch publicly available data from Instagram's Servers.

Here's an example where an instance of Guest Class is created to fetch Cristiano Ronaldo's profile information:

from ensta import Guest

guest = Guest()
profile = guest.profile("cristiano")

if profile is not None:
    print(profile.biography)
    print(profile.follower_count)
    print(profile.following_count)

🧔🏻‍♂️ Host Mode

This mode requires login through Username & Password. It can be used to take actions that require login. Additionally, users can update their own profile through this class.

Here's an example where an instance of Host Class is created to follow Cristiano Ronaldo's account:

from ensta import Host

host = Host("username", "password")
status = host.follow("cristiano")

print(status)

Code Samples:

  1. Fetch Followers / Followings List

    from ensta import Host
    
    host = Host("username", "password")
    
    followers = host.followers("cristiano")
    followings = host.followings("cristiano")
    
    for user in followers: print(user.username)
    for user in followings: print(user.username)
    
  2. Follow / Unfollow People

    from ensta import Host
    
    host = Host("username", "password")
    
    print(host.follow("cristiano"))
    print(host.unfollow("cristiano"))
    

❤️ Support Me

If you'd like to support me in developing Ensta, please consider donating here:

Disclaimer

This is a third-party package, and not approved by Instagram. It doesn't promote illegal activities or activities that violate Instagram's Community Guidelines such as spamming users, creating bot accounts, misusing data etc. You are solely responsible for all the actions you take using this package.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

ensta-4.2.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

ensta-4.2-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file ensta-4.2.tar.gz.

File metadata

  • Download URL: ensta-4.2.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for ensta-4.2.tar.gz
Algorithm Hash digest
SHA256 eddb8a96a436fcc84ccc755ca0f9d364e96e3ca488cc78b6c0a1d9394d83c9e2
MD5 559710b958fb0551c728fecedcdacb5c
BLAKE2b-256 7484a1bc64263e958d9a7b035cfaec291ccf226154c9c7d9c1f7667eee775a0f

See more details on using hashes here.

File details

Details for the file ensta-4.2-py3-none-any.whl.

File metadata

  • Download URL: ensta-4.2-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for ensta-4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5272080f822a6118afbdaf1298d4baca84566d5708b1aafbc1014298bd372953
MD5 6b0179e8e015a18d6aca51b21985dfc5
BLAKE2b-256 42fb615c6e35f7ce551d501efc9504cd89b762338a72b75f9efa9b46a2ab75b5

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