Advertisement
6g7r

info tiktok

Aug 9th, 2022 (edited)
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.38 KB | None | 0 0
  1. import os
  2. clear = lambda: os.system('cls')
  3. clear()
  4. try:
  5.  
  6.     import requests
  7.  
  8.    
  9. except ImportError:
  10.  
  11.     print("No module named 'requests' found")
  12.     try:
  13.       os.system('pip install requests')
  14.     except :
  15.       print("pip install requests")
  16.       input("Enter For Exit")
  17.    
  18. try:
  19.  
  20.     from re import search
  21.  
  22.    
  23. except ImportError:
  24.  
  25.     print("No module named 're' found")
  26.     try:
  27.       os.system('pip install re')
  28.     except :
  29.       print("pip install re")
  30.       input("Enter For Exit")
  31.    
  32.    
  33. try:
  34.  
  35.     from colorama import Fore
  36.  
  37.    
  38. except ImportError:
  39.  
  40.     print("No module named 'colorama' found")
  41.     try:
  42.       os.system('pip install colorama')
  43.     except :
  44.       print("pip install colorama")
  45.       input("Enter For Exit")
  46. print("""
  47. ╔╦═╦╦═╦═╗╔══╦╦╦╗╔══╦═╦╦╗ 𝐵𝑦 6G7R
  48. ║║║║║╔╣║║╚╗╔╣║═╣╚╗╔╣║║═╣  Insta @6g7r
  49. ╚╩╩═╩╝╚═╝..╚╝╚╩╩╝..╚╝╚═╩╩╝. Telegram : https://t.me/l_6g7r
  50. """)
  51. class info:
  52.   def requests(self):
  53.     while 1:
  54.      
  55.       self.se=input(f"<{Fore.CYAN}+{Fore.WHITE}> Sessionid : ")
  56.       self.r=requests.post("https://api16-normal-c-alisg.tiktokv.com/2/user/info/?version_code=13.5.0&pass-region=1&pass-route=1&language=ar&app_name=musical_",headers={'Host': 'api16-normal-c-alisg.tiktokv.com','Connection': 'keep-alive','User-Agent': 'TikTok 13.5.0 rv:135011 (iPhone; iOS 13.4; ar_SA@calendar=gregorian;numbers=latn) Cronet'},cookies={'sessionid':f"{self.se}"}).text
  57.       if '"message":"success"' in self.r:
  58.      
  59.         self.user_id=search(r'"user_id":(.*?),',self.r).groups()[0]
  60.         self.email=search(r'"email":"(.*?)"',self.r).groups()[0]
  61.         self.mobile=search(r'"mobile":"(.*?)"',self.r).groups()[0]
  62.         self.name=search(r'"name":"(.*?)"',self.r).groups()[0]
  63.         self.ver=search(r'"user_verified":(.*?)}',self.r).groups()[0]
  64.         print(f"""
  65. <{Fore.GREEN}1{Fore.WHITE}> User Id :  {self.user_id}
  66.  
  67. <{Fore.GREEN}2{Fore.WHITE}> Email : {self.email}
  68.  
  69. <{Fore.GREEN}3{Fore.WHITE}> Mobile :  {self.mobile}
  70.  
  71. <{Fore.GREEN}4{Fore.WHITE}> Name :  {self.name}
  72.        
  73. <{Fore.GREEN}5{Fore.WHITE}> verified ✔︎ : {self.ver}
  74.        """)
  75.       elif '"message":"error"' in self.r:
  76.         print(f"<{Fore.RED}+{Fore.WHITE}> Sessionid Error login !  ")
  77. i=info()
  78. i.requests()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement