Instagran report


SUBMITTED BY: Rodmansito

DATE: April 30, 2024, 11:29 p.m.

UPDATED: April 30, 2024, 11:30 p.m.

FORMAT: C#

SIZE: 2.2 kB

HITS: 374

  1. import time
  2. from webbot import *
  3. import pyautogui
  4. import argparse
  5. import sys
  6. # To parse the arguments
  7. def getOptions(args=sys.argv[1:]):
  8. parser = argparse.ArgumentParser(description="This bot helps users to mass report accounts with clickbaits or objectionable material.")
  9. parser.add_argument("-u", "--username", type = str, default = "", help = "Username to report.")
  10. parser.add_argument("-f", "--file", type = str, default = "acc.txt", help = "Accounts list ( Defaults to acc.txt in program directory ).")
  11. options = parser.parse_args(args)
  12. return options
  13. args = getOptions()
  14. username = args.username
  15. acc_file = args.file
  16. if username == "" :
  17. username = input("Username: ")
  18. a = open(acc_file, "r").readlines()
  19. file = [s.rstrip()for s in a]
  20. file.reverse()
  21. user = []
  22. passw = []
  23. for lines in file:
  24. file = lines.split(":")
  25. un = file[0]
  26. pw = file[1]
  27. user.append(un)
  28. passw.append(pw)
  29. for line in range(len(file)+1):
  30. web = Browser()
  31. web.go_to("https://www.instagram.com/accounts/login/")
  32. web.type(user[line], into='Phone number, username, or email')
  33. time.sleep(0.5)
  34. web.press(web.Key.TAB)
  35. time.sleep(0.5)
  36. web.type(passw[line], into='Password')
  37. web.press(web.Key.ENTER)
  38. time.sleep(2.0)
  39. web.go_to("https://www.instagram.com/%s/" % username)
  40. time.sleep(1.5)
  41. web.click(xpath='//*[@id="react-root"]/section/main/div/header/section/div[1]/div/button')
  42. time.sleep(0.5)
  43. web.click(text='Report User')
  44. time.sleep(1.5)
  45. web.click(xpath="/html/body/div[4]/div/div/div/div[2]/div/div/div/div[3]/button[1]")
  46. time.sleep(0.5)
  47. web.click(text='Close')
  48. time.sleep(0.5)
  49. web.click(xpath='/html/body/div[1]/section/nav/div[2]/div/div/div[3]/div/div[3]/a')
  50. time.sleep(0.5)
  51. web.click(xpath='/html/body/div[1]/section/main/div/header/section/div[1]/div/button')
  52. time.sleep(0.5)
  53. web.click(text='Log Out')
  54. time.sleep(0.5)
  55. pyautogui.keyDown('ctrl')
  56. time.sleep(0.25)
  57. pyautogui.keyDown('w')
  58. time.sleep(0.5)
  59. pyautogui.keyUp('ctrl')
  60. pyautogui.keyUp('w')

comments powered by Disqus