Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. import os
  2. import random
  3. import string
  4. import threading
  5. import time
  6. from queue import Queue
  7. import platform
  8.  
  9. import requests
  10. from colorama import Fore, init
  11.  
  12. intro = """
  13.  
  14. ░░░░░░███████ ]▄▄▄▄▄▄▄▄▃
  15. ▂▄▅█████████▅▄▃▂
  16. I███████████████████].
  17. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
  18. """
  19.  
  20. print(intro)
  21.  
  22. if platform.system() == "Windows": #checking OS
  23. clear = "cls"
  24. else:
  25. clear = "clear"
  26.  
  27. token = input("ID?\n")
  28. url= "https://m.youtube.com/watch?v=" + token
  29. url2 = "https://s.youtube.com/api/stats/watchtime?ns=yt&el=detailpage&cpn=AiWtf2fjIwVS2MeQ&docid=" + token + "&ver=2&cmt=7926.045&ei=igGSXce3IM2NgAfasp-ABg&fmt=133&fs=0&rt=1096.007&of=L_224b5BokWsQ5UWgAws_w&euri&lact=2837&live=dvr&cl=271684942&state=playing&vm=CAEQABgEKhhJc0gwZ2w0QmFfbTBWSXlWNm9ITmRRPT0&volume=100&c=MWEB&cver=2.20190928.07.00&cplayer=UNIPLAYER&cbrand=apple&cbr=Safari%20Mobile&cbrver=12.1.15E148&cmodel=iphone&cos=iPhone&cosver=12_2&cplatform%20=MOBILE&delay=5&hl=ru_RU&cr=DE&rtn=1396&afmt=140&lio=1556394045.182&idpj=&ldpj=&rti=1096&muted=0&st=7626.045&et=7926.045 "
  30. class main(object):
  31. def __init__(self):
  32. self.combolist = Queue()
  33. self.Writeing = Queue()
  34. self.printing = []
  35. self.botted = 0
  36. self.combolen = self.combolist.qsize()
  37.  
  38. def printservice(self): #print screen
  39. while True:
  40. if True:
  41. os.system(clear)
  42. print(Fore.LIGHTCYAN_EX + intro + Fore.LIGHTMAGENTA_EX)
  43. print(
  44. Fore.LIGHTCYAN_EX + f"Botted:{self.botted}\n")
  45. for i in range(len(self.printing) - 10, len(self.printing)):
  46. try:
  47. print(self.printing[i])
  48. except (ValueError, Exception):
  49. pass
  50. time.sleep(0.5)
  51. a = main()
  52. class proxy():
  53.  
  54. def update(self):
  55. while True:
  56. url = "https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&country=all&ssl=all&anonymity=all"
  57. r = requests.get(url)
  58.  
  59. self.splited = r.text.split("\r\n") #scraping and splitting proxies
  60. time.sleep(600)
  61.  
  62. def get_proxy(self):
  63. random1 = random.choice(self.splited) #choose a random proxie
  64. return random1
  65. def FormatProxy(self):
  66. proxyOutput = {'https':self.get_proxy()}
  67. return proxyOutput
  68.  
  69. def __init__(self):
  70. self.splited = []
  71. threading.Thread(target=self.update).start()
  72. time.sleep(3)
  73.  
  74. proxy1 = proxy()
  75. def bot():
  76. while True:
  77.  
  78.  
  79.  
  80.  
  81. headers={
  82. "Host": "m.youtube.com",
  83. "Accept-Encoding": "gzip, deflate",
  84. "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1",
  85. "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8",
  86. "Accept-Language": "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7",
  87. "Connection": "close"
  88. }
  89.  
  90. try:
  91. s = requests.session()
  92. s.get(url,headers=headers,proxies=proxy1.FormatProxy()) #stream request
  93. s.get(url2,headers=headers,proxies=proxy1.FormatProxy()) #api request
  94.  
  95. a.botted += 1
  96. except:
  97. pass
  98.  
  99.  
  100. time.sleep(7)
  101. maxthreads = int(input("How many Threads? Recommended: 500 - 1000\n"))
  102.  
  103. threading.Thread(target=a.printservice).start()
  104. num = 0
  105. while num < maxthreads :
  106. num += 1
  107. threading.Thread(target=bot).start()
  108.  
  109.  
  110. threading.Thread(target=bot).start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement