Skip to content

Instantly share code, notes, and snippets.

@straxico
Created April 14, 2019 17:21
Show Gist options
  • Save straxico/31d1383c13f2b65573ce90f8fc714799 to your computer and use it in GitHub Desktop.
Save straxico/31d1383c13f2b65573ce90f8fc714799 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 12 18:17:16 2018
@author: strix
"""
import instaloader
L = instaloader.Instaloader()
L.login('#########username#######', '#######password##########') # (login)
profile = instaloader.Profile.from_username(L.context, '#########username of target##############')
list=[]
i=0
for followee in profile.get_followees():
print(i)
user={}
i+=1
user["username"]=followee.username
user["id"]=followee.userid
user["bio"]=followee.biography
user["fec"]=followee.followees
user["frc"]=followee.followers
list.append(user)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment