Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
new92 committed Mar 10, 2024
1 parent b8b5e89 commit d21d5c4
Showing 1 changed file with 48 additions and 127 deletions.
175 changes: 48 additions & 127 deletions IAM.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,95 +350,92 @@ def main():
table = Table(show_footer=False)
centered = Align.center(table)
print(banner())
print(f"\n")
print("\n")
print(f"{yellow}[+] IAM: Instagram Account Manager")
print(f"\n")
print("\n")
print(f"{yellow}[+] Python script for managing your instagram account remotely.")
print(f"\n")
print("\n")
with Live(centered, console=console, screen=False):
table.add_column('Socials', no_wrap=False)
table.add_column('Url', no_wrap=False)
for row in TABLE:
table.add_row(*row)
print(f"\n")
print("\n")
print(f"{yellow}[1] Display profile ID")
print(f"{yellow}[2] Display security information")
print(f"{yellow}[3] Display account info")
print(f"{yellow}[4] Display pending follow requests")
print(f"{yellow}[5] Display followers")
print(f"{yellow}[6] Display the users you Follow")
print(f"\n")
print("\n")
print(f"{yellow}[7] Download my highlights")
print(f"{yellow}[8] Download anonymous stories of other users")
print(f"{yellow}[9] Download my saved posts")
print(f"{yellow}[10] Download posts from my feed")
print(f"\n")
print("\n")
print(f"{yellow}[11] Publish post(s)")
print(f"{yellow}[12] Enable/Disable notifications")
print(f"{yellow}[13] Change profile pic")
print(f"{yellow}[14] Upload story with pic")
print(f"{yellow}[15] Publish IGTV video")
print(f"\n")
print("\n")
print(f"{yellow}[16] Follow user(s)")
print(f"{yellow}[17] Unfollow user(s)")
print(f"{yellow}[18] Accept follow request(s)")
print(f"{yellow}[19] Reject follow request(s)")
print(f"{yellow}[20] Follow user's followers")
print(f"{yellow}[21] Follow user's following")
print(f"\n")
print("\n")
print(f"{yellow}[22] Send DM (Direct Message)")
print(f"{yellow}[23] Send file")
print(f"{yellow}[24] Send photo")
print(f"{yellow}[25] Send video")
print(f"\n")
print("\n")
print(f"{yellow}[26] Like the posts from hashtag(s)")
print(f"{yellow}[27] Like the posts from user(s)")
print(f"{yellow}[28] Like the posts from location(s)")
print(f"{yellow}[29] Like the posts from feed")
print(f"\n")
print("\n")
print(f"{yellow}[30] Comment by user")
print(f"{yellow}[31] Set default reply to comments")
print(f"{yellow}[32] Comment {red}<== CURRENTLY UNAVAILABLE")
print(f"\n")
print("\n")
print(f"{yellow}[33] Block User(s)")
print(f"{yellow}[34] Get username from user ID")
print(f"{yellow}[35] Get a list of all users you have blocked")
print(f"\n")
print("\n")
print(f"{yellow}[36] Create highlight(s)")
print(f"{yellow}[37] Delete highlight(s)")
print(f"{yellow}[38] Change the cover of highlight(s)")
print(f"{yellow}[39] Display the highlights of user(s)")
print(f"{yellow}[40] Retrieve information from highlight(s)")
print(f"\n")
print("\n")
print(f"{yellow}[41] Delete story")
print(f"{yellow}[42] Get story viewers")
print(f"{yellow}[43] Get stories by hashtags")
print(f"{yellow}[44] Get stories by users")
print(f"{yellow}[45] Retrieve information of a story")
print(f"\n")
print("\n")
print(f"{yellow}[46] Change country")
print(f"{yellow}[47] Change bio")
print(f"{yellow}[48] Gather information for a user")
print(f"{yellow}[49] Get information about posts where user is tagged")
print(f"{yellow}[50] Reset password")
print(f"\n")
print("\n")
print(f"{yellow}[51] Edit profile")
print(f"{yellow}[52] Like/Unlike (post(s), reel(s), igtv(s) etc.) {red}<== CURRENTLY UNAVAILABLE")
print(f"{yellow}[53] Delete (post(s), reel(s), igtv(s) etc.) {red}<== CURRENTLY UNAVAILABLE")
print(f"{yellow}[54] Save/Unsave (post(s), reel(s), igtv(s) etc.) {red}<== CURRENTLY UNAVAILABLE")
print(f"\n")
print(f"{yellow}[55] Set a specific time (from the current day) to execute an action")
print(f"\n")
print(f"{yellow}[56] Hide stories from a specific user")
print(f"\n")
print(f"{yellow}[57] Uninstall script")
print(f"\n")
print("\n")
print(f"{yellow}[52] Set a specific time (from the current day) to execute an action")
print("\n")
print(f"{yellow}[53] Hide stories from a specific user")
print("\n")
print(f"{yellow}[54] Uninstall script")
print("\n")
print(f"{yellow}[999] Show script's info")
print(f"\n")
print("\n")
print(f"{yellow}[0] Exit")
print(f"\n")
print("\n")
option=int(input(f"{yellow}[::] Please enter a number (from the above ones) >>> "))
while valOpt(option,1,57) and opt != 999:
while valOpt(option,1,54) and opt != 999:
checkOpt(option, "other")
sleep(2)
print(f"{yellow}[1] Display profile ID")
Expand All @@ -447,82 +444,79 @@ def main():
print(f"{yellow}[4] Display pending follow requests")
print(f"{yellow}[5] Display followers")
print(f"{yellow}[6] Display the users you Follow")
print(f"\n")
print("\n")
print(f"{yellow}[7] Download my highlights")
print(f"{yellow}[8] Download anonymous stories of other users")
print(f"{yellow}[9] Download my saved posts")
print(f"{yellow}[10] Download posts from my feed")
print(f"\n")
print("\n")
print(f"{yellow}[11] Publish post(s)")
print(f"{yellow}[12] Enable/Disable notifications")
print(f"{yellow}[13] Change profile pic")
print(f"{yellow}[14] Upload story with pic")
print(f"{yellow}[15] Publish IGTV video")
print(f"\n")
print("\n")
print(f"{yellow}[16] Follow user(s)")
print(f"{yellow}[17] Unfollow user(s)")
print(f"{yellow}[18] Accept follow request(s)")
print(f"{yellow}[19] Reject follow request(s)")
print(f"{yellow}[20] Follow user's followers")
print(f"{yellow}[21] Follow user's following")
print(f"\n")
print("\n")
print(f"{yellow}[22] Send DM (Direct Message)")
print(f"{yellow}[23] Send file")
print(f"{yellow}[24] Send photo")
print(f"{yellow}[25] Send video")
print(f"\n")
print("\n")
print(f"{yellow}[26] Like the posts from hashtag(s)")
print(f"{yellow}[27] Like the posts from user(s)")
print(f"{yellow}[28] Like the posts from location(s)")
print(f"{yellow}[29] Like the posts from feed")
print(f"\n")
print("\n")
print(f"{yellow}[30] Comment by user")
print(f"{yellow}[31] Set default reply to comments")
print(f"{yellow}[32] Comment {red}<== CURRENTLY UNAVAILABLE")
print(f"\n")
print("\n")
print(f"{yellow}[33] Block User(s)")
print(f"{yellow}[34] Get username from user ID")
print(f"{yellow}[35] Get a list of all users you have blocked")
print(f"\n")
print("\n")
print(f"{yellow}[36] Create highlight(s)")
print(f"{yellow}[37] Delete highlight(s)")
print(f"{yellow}[38] Change the cover of highlight(s)")
print(f"{yellow}[39] Display the highlights of user(s)")
print(f"{yellow}[40] Retrieve information from highlight(s)")
print(f"\n")
print("\n")
print(f"{yellow}[41] Delete story")
print(f"{yellow}[42] Get story viewers")
print(f"{yellow}[43] Get stories by hashtags")
print(f"{yellow}[44] Get stories by users")
print(f"{yellow}[45] Retrieve information of a story")
print(f"\n")
print("\n")
print(f"{yellow}[46] Change country")
print(f"{yellow}[47] Change bio")
print(f"{yellow}[48] Gather information for a user")
print(f"{yellow}[49] Get information about posts where user is tagged")
print(f"{yellow}[50] Reset password")
print(f"\n")
print("\n")
print(f"{yellow}[51] Edit profile")
print(f"{yellow}[52] Like/Unlike (post(s), reel(s), igtv(s) etc.)")
print(f"{yellow}[53] Delete (post(s), reel(s), igtv(s) etc.)")
print(f"{yellow}[54] Save/Unsave (post(s), reel(s), igtv(s) etc.)")
print(f"\n")
print(f"{yellow}[55] Set a specific time (from the current day) to execute an action")
print(f"\n")
print(f"{yellow}[56] Hide stories from a specific user")
print(f"\n")
print(f"{yellow}[57] Uninstall script")
print(f"\n")
print("\n")
print(f"{yellow}[52] Set a specific time (from the current day) to execute an action")
print("\n")
print(f"{yellow}[53] Hide stories from a specific user")
print("\n")
print(f"{yellow}[54] Uninstall script")
print("\n")
print(f"{yellow}[999] Show script's info")
print(f"\n")
print("\n")
print(f"{yellow}[0] Exit")
print(f"\n")
print("\n")
option=int(input(f"{yellow}[::] Please enter again a number (from the above ones) >>> "))
if option != 0:
clear()
print(f"\n")
print("\n")
print(f"|--------------------|LOGIN|--------------------|")
print(f"\n")
print("\n")
username=input(f"{yellow}[::] Please enter your username >>> ").lower().strip()
while checkUser(username):
checkOpt(username, "username")
Expand Down Expand Up @@ -1954,7 +1948,7 @@ def main():
clear()
try:
print(f"{yellow}[+] Blocked users ")
print(f"\n")
print("\n")
print(api.blocked_user_list())
Class()
except Exception as ex:
Expand Down Expand Up @@ -2612,79 +2606,6 @@ def main():
Except(ex)

elif option == 52:
clear()
count=int(input(f"{yellow}[::] Posts to like/unlike (num) >>> "))
while checkCount(count):
checkOpt(count, "count")
sleep(1)
count=int(input(f"{yellow}[::] Posts to like/unlike (num) >>> "))
browser = webdriver.Chrome()
for i in range(count):
url=input(f"{yellow}[::] Post url >>> ")
while url in NULL:
print(f"{red}[✕] This field can't be blank !")
sleep(1)
url=input(f"{yellow}[::] Post url >>> ")
try:
browser.get(url)
like = browser.find_element_by_id("mount_0_0_Cs")
like.click()
sleep(2)
print(f"{green}[✓] Post liked.")
Class()
except Exception as ex:
Except(ex)

elif option == 53:
clear()
count=int(input(f"{yellow}[::] Deletes (num) >>> "))
while checkCount(count):
checkOpt(count, "count")
sleep(1)
count=int(input(f"{yellow}[::] Deletes (num) >>> "))
browser = webdriver.Chrome()
for i in range(count):
url=input(f"{yellow}[::] URL >>> ")
while url in NULL:
print(f"{red}[✕] This field can't be blank !")
sleep(1)
url=input(f"{yellow}[::] URL >>> ")
try:
browser.get(url)
menu = browser.find_element_by_class_name("_ab6-")
menu.click()
delete = browser.find_element_by_class_name("_a9-- _a9-_")
delete.click()
sleep(2)
print(f"{green}[✓] Element deleted.")
Class()
except Exception as ex:
Except(ex)

elif option == 54:
count=int(input(f"{yellow}[::] Elements to save (num) >>> "))
while checkCount(count):
checkOpt(count, "count")
sleep(1)
count=int(input(f"{yellow}[::] Elements to save >>> "))
browser = webdriver.Chrome()
for i in range(count):
url=input(f"{yellow}[::] URL >>> ")
while url in NULL:
print(f"{red}[✕] This field can't be blank !")
sleep(1)
url=input(f"{yellow}[::] URL >>> ")
try:
browser.get(url)
save = browser.find_element_by_class_name("_abm0 _abm1")
save.click()
sleep(2)
print(f"{green}[✓] Element saved.")
Class()
except Exception as ex:
Except(ex)

elif option == 55:
clear()
print(f"{green}[+] Acceptable time format >>> 15:06:10")
sleep(1)
Expand Down

0 comments on commit d21d5c4

Please sign in to comment.