Keyifli Kullanımlar.
Python:
import instaloader
from termcolor import colored
def get_instagram_profile(username):
L = instaloader.Instaloader()
try:
profile = instaloader.Profile.from_username(L.context, username)
profile_info = {
'username': profile.username,
'full_name': profile.full_name,
'biography': profile.biography,
'followers': profile.followers,
'following': profile.followees,
'posts': profile.mediacount,
}
return profile_info
except instaloader.exceptions.ProfileNotExistsException:
print(colored(f"Profil '{username}' bulunamadı.", "red", attrs=['bold']))
return None
username = input(colored("Instagram kullanıcı adını girin: ", "cyan", attrs=['bold']))
profile_info = get_instagram_profile(username)
if profile_info:
print(colored(f"Kullanıcı Adı: {profile_info['username']}", "magenta", attrs=['bold']))
print(colored(f"Tam İsim: {profile_info['full_name']}", "green", attrs=['bold']))
print(colored(f"Biyografi: {profile_info['biography']}", "blue", attrs=['bold']))
print(colored(f"Takipçiler: {profile_info['followers']}", "yellow", attrs=['bold']))
print(colored(f"Takip Edilenler: {profile_info['following']}", "cyan", attrs=['bold']))
print(colored(f"Paylaşımlar: {profile_info['posts']}", "red", attrs=['bold']))
else:
print(colored("Profil bilgilerine ulaşılamadı.", "red", attrs=['bold']))
# Coded by suskun_amonra


