This package lets you use Instagram's Internal API (Web API) through simple methods and classes.
It supports two type of classes - "Guest" and "Host"
Open a terminal window and run this command:
pip install ensta
It doesn't require any type of login and can be used to fetch publicly available data like Profile Information, Username Availability etc.
from ensta import Guest
guest = Guest()
biography = guest.get_biography("username")
print(biography)
It requires login and can be used to manage your account or fetch information not available without logging in.
from ensta import Host
sessionid = "12345678:abcdefgh"
host = Host(sessionid)
result = host.follow_username("username")
print(result)