xxei

Tiktok

Apr 8th, 2021
841
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("""
  2.   __  __                            
  3. / _|/ _|_ __ _ __ ___   __ _ _ __  
  4. | |_| |_| '__| '_ ` _ \ / _` | '_ \
  5. |  _|  _| |  | | | | | | (_| | | | |
  6. |_| |_| |_|  |_| |_| |_|\__,_|_| |_|
  7.  
  8. Telegram @ffrman""")
  9. print("-----------------------------------")
  10.  
  11.  
  12. import requests
  13. import sys
  14. from os import path, getcwd
  15.  
  16. import os
  17. import time
  18. import random
  19. import sys as n
  20. import time as mm
  21. import webbrowser
  22. from time import sleep
  23. import datetime as dt
  24. current_path = path.abspath(getcwd())
  25.  
  26.  
  27. id = input('ضع أيدي التيليقرام :')
  28. token = input('ضع توكن البوت في التيليفرام :')
  29.  
  30. sa = 'https://pastebin.com/raw/MYmjfQj2'
  31. t = requests.get(sa).text
  32.  
  33.  
  34. if path.isfile(f'{current_path}//user.txt'):
  35.     pass
  36. else:
  37.     print('لا يوجد ملف بإسم user')
  38.     sys.exit()
  39.  
  40. timeSleep = input('time sleep(1): ')
  41. if timeSleep == '':
  42.     print('سيكون 1')
  43.     sleep(0.4)
  44.     timeSleep = 1
  45. usersCounter = 0
  46. availableNum = 0
  47. takenNum = 0
  48. timeOut = 7
  49. availableUsers = list()
  50. fileNum = 1
  51. while path.isfile(f'{current_path}//المتاحات {fileNum}.txt'):
  52.     fileNum = fileNum + 1
  53. proxyFileNum = 1
  54.  
  55.  
  56. def getLines():
  57.     theFile = f"{current_path}//user.txt"
  58.     with open(theFile, 'r') as f:
  59.         usersList = list()
  60.         for user in f.readlines():
  61.             usersList.append(user.strip('\n'))
  62.         return usersList
  63.  
  64.  
  65. usersList = getLines()
  66. usersLen = len(usersList)
  67.  
  68. sessionId = input('الرجاء وضع السيزن ايدي :')
  69. print(t)
  70. if sessionId == '':
  71.     print('خطأ في السيزن الأيدي')
  72.     sys.exit()
  73.  
  74.  
  75. def saveAvailables(user):
  76.     if path.isfile(f'{current_path}//المتاحات  {fileNum}.txt'):
  77.         with open(f'المتاحات {fileNum}.txt', 'r+') as f:
  78.             if user not in f.read().splitlines():
  79.                 f.write(f'{user}\n')
  80.             else:
  81.                 pass
  82.             f.close()
  83.     else:
  84.         with open(f'المتاحات {fileNum}.txt', 'a+') as f:
  85.             f.write(f'{user}\n')
  86.             f.close()
  87.  
  88.  
  89.  
  90. for i in range(usersCounter, len(usersList)):
  91.     username = usersList[i]
  92.     sleep(float(timeSleep))
  93.     if str(username).isdecimal():
  94.         print(
  95.             f'لا يمكن وضع اليوزرات ارقام: {username} ')
  96.         pass
  97.     else:
  98.         for attempt in range(3):
  99.             try:
  100.                 url = "https://www.tiktok.com/api/uniqueid/check/?region=SA&aid=1233&unique_id=" + \
  101.                     username+"&app_language=en"
  102.                 payload = ""
  103.                 headers = {
  104.                     "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
  105.                     "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",
  106.                     "Connection": "close",
  107.                     "Host": "www.tiktok.com",
  108.                     "Accept-Encoding": "gzip, deflate",
  109.                     "Cache-Control": "max-age=0"
  110.                 }
  111.                 cookies = {'sessionid': sessionId}
  112.                 response = requests.request(
  113.                     "GET", url, data=payload, headers=headers, cookies=cookies, timeout=timeOut)
  114.  
  115.                 post = str(response.json()["status_msg"])
  116.                 if post == "" or "":
  117.                     print(f'{username} متاح ✅')
  118.                     tlg =(f'https://api.telegram.org/bot{token}/sendMessage?chat_id={id}&text=\n CHECKER TIKTOK V0.1\n━━━━━━━━━━━━\n user : {username} \n━━━━━━━━━━━━\n  {t} ')
  119.                     req = requests.post(tlg)
  120.                     saveAvailables(user=username)
  121.                     availableNum = availableNum + 1
  122.                 elif post == "Login expired":
  123.                     print('خطأ في السيزن أيدي')
  124.                     sys.exit()
  125.                 else:
  126.                    
  127.                     print(f'{username} غير متاح ❌')
  128.                     takenNum = takenNum + 1
  129.                    
  130.             except Exception as e:
  131.                 print(f'{username} حصل خطأ حاول مره اخرى ...')
  132.             else:
  133.                 break
  134.         else:
  135.             print('الرجاء الاتصال بالانترنت!')
  136.             try:
  137.                 usersCounter = usersCounter - 1
  138.             except:
  139.                 pass
  140.             break
  141.  
  142.         print(f'')
  143.         if i+1 == usersLen:
  144.             print(f'تم الانتهاء من الفحص, {availableNum} المتاحات, {takenNum} الغير متاح')
  145.  
  146.     usersCounter = usersCounter + 1
  147. print('تم')
  148.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×