-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathins.py
116 lines (91 loc) · 3.69 KB
/
ins.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import time
import sys
import instaloader
import colorama
from colorama import init, Style, Fore, Back
import pyshorteners
import requests
import os
import re
def clear():
os.system('cls' if os.name == 'nt' else 'clear')
# Call clear function to clear the screen
clear()
banner = '''\033[1;36m
____ __ __ __ ____ __
/ __ )____ / / / /_ ______/ / / _/___ _____/ /_____ _
/ __ / __ \ / /_/ / / / / __ / / // __ \/ ___/ __/ __ `/
/ /_/ / /_/ / / __ / /_/ / /_/ / _/ // / / (__ ) /_/ /_/ /
/_____/\____/ /_/ /_/\__, /\__,_/ /___/_/ /_/____/\__/\__,_/
/____/
'''
print(banner)
#animation Text
def animate_text(text):
for char in text:
print(char, end='', flush=True)
time.sleep(0.1)
text = Back.RED + "Hello, Hackers my name is : BO HAYDAR" + Style.RESET_ALL
animate_text(text)
# The rest of your program goes here
session = requests.Session()
session.proxies = {'http': 'http://10.10.1.10:3128', 'https': 'http://10.10.1.10:1080'}
# Prompt the user to enter an Instagram username
username = input('\033[1;32m\n\nEnter an Instagram username ➤ ')
# Retrieve the profile information for the given username
# Create an instance of Instaloader
L = instaloader.Instaloader()
#Banner
#profilling
profile = instaloader.Profile.from_username(L.context, username)
# Get the verification status of the user's Instagram account
is_verified = profile.is_verified
# Get profile image
profile_pic_url = profile.profile_pic_url
# Create a Shortener object
s = pyshorteners.Shortener()
# Shorten the URL using the default shortening service (TinyURL)
short_url = s.tinyurl.short(profile_pic_url)
# Get the external URL associated with the user's profile
external_url = profile.external_url
# Get the business account status of the user's Instagram account
is_business_account = profile.is_business_account
# Count the number of videos in the profile's posts
video_count = 0
for post in profile.get_posts():
if post.is_video:
video_count += 1
# Grab email & contact
emails = re.findall(r"\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b", profile.biography)
# Print the profile information
print(Fore.GREEN + '------------------------------------\n')
print('\033[36mUsername:\033[0m', profile.username)
print('\033[36mUser id:\033[0m', profile.userid)
print('\033[36mFull Name:\033[0m', profile.full_name)
print('\033[36mBio:\033[0m', profile.biography)
print('\033[36mEmails id:\033[0m', emails)
print('\033[36mFollowers:\033[0m', profile.followers)
print('\033[36mFollowing:\033[0m', profile.followees)
print('\033[36mPosts:\033[0m', profile.mediacount)
print('\033[36mNumber of videos:\033[0m', video_count)
#print(Fore.GREEN + 'Number of reel:', reel_count)
#print(Fore.GREEN + 'Number of image:', image_count)
print('\033[36mPrivacy status:\033[0m', profile.is_private)
print('\033[36mIs verified:\033[0m', is_verified)
print('\033[36mExternal URL:\033[0m', external_url)
print('\033[36mIs business account:\033[0m', profile.is_business_account)
print('\033[36mProfile picture URL:\033[0m', short_url)
#print(Fore.GREEN + 'Join recently:', profile.is_joined_recently)
#print(Fore.GREEN + 'Get Post', profile.get_posts())
print('\n\033[1;31mThis tool created by @ethicalprince \nFor stop CTRL + z\033[0m\n')
def restart_program():
python = sys.executable
os.execl(python, python, *sys.argv)
# Example usage
# Ask user if they want to restart
response = input("\033[1;33mDo you want to restart the program? (y/n)\033[0m ")
if response.lower() == "y":
print(Fore.RED + "\033[1;31m\nRestarting program...\033[0m")
restart_program()
else:
print("Exiting program. Thanks for using ;")