Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  j
Language: C/C++
Code:
from InstagramAPI import InstagramAPI



print """
==================================================
==     ,-_/         .     .-,--' ,   .  .        ==
==     '  | ,-. ,-. |- ,-. \|__  )   |  |        ==
==     .^ | | | `-. |  ,-|  |   /    |  |        ==
==     `--' ' ' `-' `' `-^ `'   `--' `--|        ==
==                                   .- |        ==
==     [GETTER]                      `--'        ==
==================================================
[DEV] BitTheByte(Ahmed Ezzat)
[GIT] https://github.com/BitTheByte
[VER] 0.2.1
==================================================
"""

username = raw_input("[LOGIN] Please Enter [YOUR] Instagram Username : ")
password = raw_input("[LOGIN] Please Enter [YOUR] Instagram Password : ")
API = InstagramAPI(username, password)
API.login()


username = raw_input('[GET] Username to fetch data from : ')

print "[!] Getting Follower(s) .. ",
Followers = API.getTotalFollowers(API.getUserID(username))
print "DONE"
Followers_store = []
for follower in Followers:
     Followers_store.append(follower['username'] + '\n')
print "[!] Saveing [{}] Follower(s)".format(len(Followers_store))
open("{}_followers.txt".format(username),"w").writelines(Followers_store)

print "[!] Getting Following(s) .. ",
Followings = API.getTotalFollowings(API.getUserID(username))
print "DONE"
Followings_store = []
for following in Followings:
     Followings_store.append(following['username'] + '\n')
print "[!] Saveing [{}] Following(s)".format(len(Followings_store))
open("{}_followings.txt".format(username),"w").writelines(Followings_store)
print "[#] All done .. Press [Enter] to exit"
raw_input()
#time.sleep(60)
Comments: