Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Sumeye9036
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-hkt7hvfujngj
Tjcgunnkijvyiv
_fjhijgyibvfujbgtuijjjggyt7ibgdifj
Copy link

@snmyrsl snmyrsl Jul 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coding=utf-8

#!/usr/bin/env python3

from requests import Session, exceptions
from colorama import Style, Back
from libs.helpers import ask, info, error, success, truncate, get_max_line_length

INSTAGRAM_USER_INFO_URL = "https://www.instagram.com/_senemyrsl

DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0"

class InstagramException(Exception):
pass

class Instagram:
def init(self, username): _senemyrsl
self.username = username
self.session = Session()
self.session.headers.update({"User-Agent": DEFAULT_USER_AGENT})

def get_user_info(self):
    response = self.session.get(INSTAGRAM_USER_INFO_URL.format(self.username))

    if (response.status_code != 200):
        raise InstagramException("Instagram'a bağlanılamıyor! (Status Code: {})".format(response.status_code))

    json_response = response.json()
    if ("graphql" not in json_response):
        raise InstagramException("Instagram'dan veri alınamıyor! (Response içinde veri yok!)")
        
    return json_response

def print_instagram(username):
try:
info("Instagram kullanıcısının bilgileri alınıyor: {}".format(username))
instagram = _senemyrsl
Instagram(username)
user_info = instagram.get_user_info()
except InstagramException as e:
error(e)
return
except exceptions.ConnectionError:
error("Spotify bağlantısı sağlanamadı! (ConnectionError)")
return

is_private = "Herkese Açık"
if (user_info["graphql"]["user"]["is_private"]):
    is_private = "Gizli Hesap"

is_verified = "Hayır"
if (user_info["graphql"]["user"]["is_verified"]):
    is_verified = "Evet"

facebook_address = "Yok"
if (user_info["graphql"]["user"]["connected_fb_page"]):
    facebook_address = [email protected]

str(user_info["graphql"]["user"]["connected_fb_page"])

success("Instagram bilgileri yüklendi!\n")
success("+=====================Instagram Profil Bilgileri=====================+")
info("Tam İsmi: {}".format(Back.MAGENTA + str(user_info["graphql"]["user"]["full_name"])))
info("Kullanıcı Adı: {}".format(Style.RESET_ALL + username))
info("Hesabın Instagram ID'si: {}".format(Style.RESET_ALL + user_info["graphql"]["user"]["id"]))
info("Biyografisi: {}".format(Style.RESET_ALL + user_info["graphql"]["user"]["biography"]))
info("Takip Edilen Hesap Sayısı: {}".format(Style.RESET_ALL + str(user_info["graphql"]["user"]["edge_followed_by"]["count"])))
info("Takip Eden Hesap Sayısı: {}".format(Style.RESET_ALL + str(user_info["graphql"]["user"]["edge_follow"]["count"])))
info("Hesap durumu: {}".format(Style.RESET_ALL + is_private))
info("Hesap onaylanma durumu: {}".format(Style.RESET_ALL + is_verified))
info("Bağlı Facebook Hesabı: {}".format(Style.RESET_ALL + facebook_address))
success("+====================================================================+")

-tihhujbgyijbftdvnmvgyj vv
_sjtujjgyijcghhybvgg
_dhiojvfyygftghbcvjnfdbnnkk
_$*¥
_djgggggttreswwqwyhbvxvj
Sgjuhcfkkvboo
'-hlohbfyiknhgutf