Ejemplo n.º 1
0
def stat(named):
    clear()
    banner_drgn()
    try:
        users = [f'{named}']
        followings = {}
        following_list = []
        for person in users:
            print(f'{PULS} Starting : {person}')
            try:
                followings[person] = get_followings(person)
                following_list = following_list + followings[person]
            except KeyError:
                print(f'{ERRORS} IndexError')

        Counter(following_list).most_common(10)

        follow_relations = {}
        for following_user in followings.keys():
            follow_relation_list = []
            for followed_user in followings.keys():
                if followed_user in followings[following_user]:
                    follow_relation_list.append(True)
                else:
                    follow_relation_list.append(False)
            follow_relations[following_user] = follow_relation_list

        following_df = pd.DataFrame.from_dict(follow_relations,
                                              orient='index',
                                              columns=followings.keys())
        following_df
    except KeyboardInterrupt:

        sys.exit(Aborted)
Ejemplo n.º 2
0
def back_android():
    clear()
    try:
        banner_drgn()
        list_Android()
        choice = input(promt_choice)
        if choice == '1':
            lmt()
        else:
            sys.exit(NFound)
    except KeyboardInterrupt:
        sys.exit(Aborted)
Ejemplo n.º 3
0
def back_mac():
    clear()
    try:
        banner_drgn()
        list_Mac()
        choice = input(promt_choice)
        if choice == '1':
            mrv()
        elif choice == '2':
            mbd()
        else:
            sys.exit(NFound)
    except KeyboardInterrupt:
        sys.exit(Aborted)
Ejemplo n.º 4
0
def back_windows():
    clear()
    try:
        banner_drgn()
        list_windows()
        choice = input(promt_choice)
        if choice == '1':
            mtr()
        elif choice == '2':
            rvs()
        elif choice == '3':
            ecd()
        else:
            sys.exit(NFound)
    except KeyboardInterrupt:
        sys.exit(Aborted)
Ejemplo n.º 5
0
def back_script():
    clear()
    try:
        banner_drgn()
        list_Script()
        choice = input(promt_choice)
        if choice == '1':
            spr()
        elif choice == '2':
            sbu()
        elif choice == '3':
            spu()
        else:
            sys.exit(NFound)
    except KeyboardInterrupt:
        sys.exit(Aborted)
Ejemplo n.º 6
0
def back_linux():
    clear()
    try:
        banner_drgn()
        list_Linux()
        choice = input(promt_choice)
        if choice == '1':
            lmt()
        elif choice == '2':
            lbmt()
        elif choice == '3':
            lbs()
        else:
            sys.exit(NFound)
    except KeyboardInterrupt:
        sys.exit(Aborted)
Ejemplo n.º 7
0
def back_web():
    clear()
    try:
        banner_drgn()
        list_Web()
        choice = input(promt_choice)
        if choice == '1':
            wpm()
        elif choice == '2':
            wam()
        elif choice == '3':
            wjm()
        elif choice == '4':
            ww()
        else:
            sys.exit(NFound)
    except KeyboardInterrupt:
        sys.exit(Aborted)
Ejemplo n.º 8
0
def scrap_foll():
    clear()
    banner_drgn()
    res = input(f'{PULS} Instagram Name: ')
    print(f'''
\u001b[1m[\u001b[32;1m1\u001b[0m\u001b[1m]\u001b[0m Scraping Followers ... {SUCES_SYM}
\u001b[1m[\u001b[32;1m2\u001b[0m\u001b[1m]\u001b[0m Scraping Followees ... {SUCES_SYM}'''
          )
    try:
        profile = instaloader.Profile.from_username(bot.context, f'{res}')
        followers = [follower.username for follower in profile.get_followers()]
        followees = [followee.username for followee in profile.get_followees()]
        x = input(promt_choice)
        if x == '1':
            print(followers)
        elif x == '2':
            print(followees)
        else:
            raise ValueError(f'{ERRORS} INVALID VALUE.')
    except:
        sys.exit(f'{ERRORS} Login Needed.')
Ejemplo n.º 9
0
def mainscan():
    clear()
    banner_drgn()
    print(f'''
  \u001b[1m[\u001b[32;1m01\u001b[0m\u001b[1m]\u001b[0m Mass Apache ... {SUCES_SYM}
  \u001b[1m[\u001b[32;1m02\u001b[0m\u001b[1m]\u001b[0m XSS Scanner ... {ERROR_SYM}

  [CTRL+C] EXIT\n''')
    try:
        x = input(f'{promt_choice}')
        try:
            z = input(f'{PULS} List  : ')
            if x == 1 or len(x) == 1:
                mass_apache(z)
            elif z == '':
                sys.exit(f'{MINS} Unknown Path.')
            else:
                sys.exit(f'{NFound}')
        except ValueError:
            sys.exit(f'{MINS} Value Error.')
    except KeyboardInterrupt:
        sys.exit(f'{Aborted}')
Ejemplo n.º 10
0
def main_scraper():
    import time
    clear()
    banner_drgn()
    print(f'''
\u001b[1m[\u001b[32;1m1\u001b[0m\u001b[1m]\u001b[0m Account Info ..... {SUCES_SYM}
\u001b[1m[\u001b[32;1m2\u001b[0m\u001b[1m]\u001b[0m Instagram Login .. {SUCES_SYM}
\u001b[1m[\u001b[32;1m3\u001b[0m\u001b[1m]\u001b[0m Scrap Follow ..... {SUCES_SYM}
\u001b[1m[\u001b[32;1m4\u001b[0m\u001b[1m]\u001b[0m Download Post .... {SUCES_SYM}
\u001b[1m[\u001b[32;1m5\u001b[0m\u001b[1m]\u001b[0m Ghost Followers .. {SUCES_SYM}
''')
    try:
        x = input(promt_choice)
        if x == '1':
            clear()
            banner_drgn()
            try:
                res = input(f'{PULS} Instagram Name: ')
                try:
                    if res == '' or len(res) == '2':
                        print(f'{ERRORS} try again.')
                        time.sleep(2)
                        main_scraper()
                    ig_info(res)
                except:
                    sys.exit(f'{ERROR_SYM} Username not found!')
            except KeyboardInterrupt:
                sys.exit(f'{Aborted}')
        elif x == '2':
            ig_login()
        elif x == '3':
            scrap_foll()
        elif x == '4':
            clear()
            banner_drgn()
            try:
                res = input(f'{PULS} Instagram Name: ')

                if res == '' or len(res) == '2':
                    print(f'{ERRORS} try again.')
                    time.sleep(2)
                    main_scraper()
                ig_downloader(res)
            except KeyboardInterrupt:
                sys.exit(f'{Aborted}')
        elif x == '5':
            clear()
            banner_drgn()
            try:
                res = input(f'{PULS} Instagram Name: ')
                try:
                    if res == '' or len(res) == '2':
                        print(f'{ERRORS} try again.')
                        time.sleep(2)
                        main_scraper()
                    ghost_follow(res)
                except Exception as e:
                    sys.exit(f'{ERROR_SYM} {e}')
            except KeyboardInterrupt:
                sys.exit(f'{Aborted}')
    except KeyboardInterrupt:
        sys.exit(f'{Aborted}')
    except ValueError:
        sys.exit(f'{NFound}')