Instagram Python Package You Need To See

Manpreet Singh
2 min readJul 23, 2022

Welcome back! Python is one of the best programming languages to learn right now, and Instagram is a massive social media application, so, let’s take a look at an awesome Python library for Instagram! This specific one is called instagrapi, below is a link to their GitHub repository:

This specific API allows us to use the Public/Private API for requests, we can login with our account, we can upload photos, videos, Reels, and Stories as well, and we can even like, follow, and edit our accounts as well!

To use this project, you can clone the repository (linked above), once cloned, we can import this project in and start using this API! As a basic example, we can use the following basic example:

from instagrapi import Client

cl = Client()
cl.login(ACCOUNT_USERNAME, ACCOUNT_PASSWORD)

user_id = cl.user_id_from_username("adw0rd")
medias = cl.user_medias(user_id, 20)

--

--