🔥 Fastest & Simplest Python Package For Instagram Automation
Project description
Ensta - Free Instagram API
Ensta uses Instagram's Internal Web API for data scraping which makes it a reliable choice over other third-party libraries. Also unlike other libraries, ensta always remains up-to-date.
Two type of classes are supported - Guest & Host.
Installation
Run this command:
$ pip install ensta --upgrade
Supported Actions
You can do a lot with ensta, here's a list:
- Username/Password & SessionID Login
- Upload Posts - With Caption, Comments Enabled, etc.
- Check Username Availability
- Fetch Profile Data
- Convert Username to UID, and vice versa.
- Follow/Unfollow Users
- Generate Followers/Followings List
- Change Account Type - Public/Private
- Generate Posts List
- Fetch Post Data
- Like/Unlike Post
- Edit Biography & Display Name
- Fetch your Email, Gender, Date of birth, etc.
Any missing feature? Raise an issue.
🧔🏻♂️ Host Mode
Requires login through Username/Password or SessionId. Can fetch data that requires login. Can update your profile info.
from ensta import Host
host = Host(username, password)
print(host.profile("leomessi"))
print(host.follow("leomessi"))
print(host.change_bio("hello"))
🧔🏻♂️ Guest Mode
Doesn't require login but is limited to certain actions.
from ensta import Guest
guest = Guest()
print(guest.profile("leomessi"))
print(guest.get_uid("leomessi"))
print(guest.username_availability("nevergiveup"))
👨🏻💻 Code Samples
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)
Follow / Unfollow People
from ensta import Host
host = Host(username, password)
print(host.follow("cristiano"))
print(host.unfollow("cristiano"))
Fetch Profile Data (Host)
from ensta import Host
host = Host(username, password)
profile = host.profile("cristiano")
print(profile.full_name)
print(profile.biography)
Fetch Profile Data (Guest)
from ensta import Guest
guest = Guest()
profile = guest.profile("leomessi")
print(profile.biography)
print(profile.full_name)
Update Profile
from ensta import Host
host = Host(username, password)
print(host.change_display_name("Lionel Messi"))
print(host.change_bio("Athlete"))
Upload Post
from ensta import Host
host = Host(username, password)
status = host.upload_post(
photo_path="Picture.jpg",
caption="Enjoying the sunset! 🌇",
)
print(status)
Generate Posts List
from ensta import Host
host = Host(username, password)
posts = host.posts("leomessi")
for post in posts:
print(post.caption_text) # Post Data
print(post.like_count) # Post Data
print(post.like()) # Like()
print(post.unlike()) # Unlike()
likers = post.likers() # Likers List
for user in likers: print(user.username)
Get Your Private Info
from ensta import Host
host = Host(username, password)
me = host.private_info()
print(me.biography)
print(me.gender)
print(me.birthday)
print(me.email)
❤️ Support Me
If you think this library is useful, please consider donating:
Disclaimer
This is a third-party package, and is not associated with Instagram. It doesn't promote activities that violate Instagram's Community Guidelines such as spamming users, 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
Built Distribution
File details
Details for the file ensta-4.8.tar.gz
.
File metadata
- Download URL: ensta-4.8.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e114cef9a08a519ca1c6bf34e68d804e2ec89632fdf7941f52710658e753ef43 |
|
MD5 | a552ff55afab2d9cba1864bde897821a |
|
BLAKE2b-256 | 909665ccc61a80cb938fd0287e10aee8fb3896f0dbf8d18493a57e1f03855452 |
Provenance
File details
Details for the file ensta-4.8-py3-none-any.whl
.
File metadata
- Download URL: ensta-4.8-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029229cb594342a1753b0d16524ed188709d98918a34742e74e51fcf55e540fc |
|
MD5 | 8a8029b4d907ee1cf489090b88001695 |
|
BLAKE2b-256 | 6d40b0ba269e497b6a5af0e7198af4f1b7d8273e4ea961f4a7a6a8f2e96623d1 |