get Cc details


SUBMITTED BY: Guest

DATE: Nov. 17, 2021, 12:32 a.m.

FORMAT: Python

SIZE: 6.9 kB

HITS: 577

  1. import os
  2. from time import sleep
  3. print("Enter You Profile name")
  4. h=input("Here - ")
  5. print("Welcome",h)
  6. a=input("Select Your Password ")
  7. d=input("Enter The Password Again - ")
  8. if d==a:
  9. print("Your Password Has been saved \n Now login To Continue ")
  10. else:
  11. print("Both Password Must Match")
  12. exit()
  13. o=input(" - ")
  14. if o==d:
  15. print(" Good to go")
  16. print(" Running scraper!")
  17. sleep(3)
  18. else:
  19. print("Wrong password!")
  20. exit()
  21. from telethon.sync import TelegramClient
  22. import os
  23. artt = """
  24. ▄ ▄▄▄▄▄ ▄█▄ █▄▄▄▄ ██ █ ▄▄ \033[37m1.0\033[35m
  25. ▀▄ █ █ ▀▄ █▀ ▀▄ █ ▄▀ █ █ █ █
  26. █ ▀ \033[37m▄▄▄\033[35m ▀▀▀▀▄ █ ▀ █▀▀▌ █▄▄█ █▀▀▀
  27. ▄ █ ▀▄▄▄▄▀ █▄ ▄▀ █ █ █ █ █
  28. █ ▀▄ ▀███▀ █ █ █ \033[37m[\033[35m+\033[37m] By \033[37mᴿᴬᴳᴱ฿Ⱡ₳₵₭ Ⱨ₳₩₭\033[35m
  29. ▀ ▀ █ ▀ [\033[37m+\033[35m] Special thanks \033[35m@iam_done_with_this_fuckin_life
  30. """
  31. os.system('clear || cls')
  32. print ("\033[35m" + artt)
  33. try:
  34. apiss = open('api.txt','r')
  35. apis = apiss.readlines()
  36. except:
  37. apiss = open('api.txt','w')
  38. apiss.close()
  39. apiss = open('api.txt','r')
  40. apis = apiss.readlines()
  41. if apis == []:
  42. api_id = int(input("\033[35mApi\033[37mId: \033[35m"))
  43. api_hash = input("\033[35mApi\033[37mHash: \033[35m")
  44. api_id = int(str(api_id).replace(' ',''))
  45. api_hash = api_hash.replace(' ','')
  46. apiss = open('api.txt', 'w')
  47. apiss.write(str(api_id))
  48. apiss.write('\n')
  49. apiss.write(api_hash)
  50. apiss = apiss.close()
  51. ewdewde = input("\n\033[35mPress enter to \033[37mcontinue\033[35m.")
  52. os.system('clear || cls')
  53. elif len(apis) == 2:
  54. api_id = int(apis[0])
  55. api_hash = apis[1]
  56. print ("\033[35mApi\033[37mId: " + "\033[35m" + str(api_id))
  57. print ("\033[35mApi\033[37mHash: " + "\033[35m" + api_hash)
  58. print("\n\033[35mIf you want to change your \033[37mapi\033[35m delete '\033[37mapi.txt\033[35m'.")
  59. sdwed = input("\033[37mPress enter to \033[35mcontinue\033[37m.")
  60. os.system('clear || cls')
  61. username = 'XScrap'
  62. lst = ["0","1","2","3","4","5","6","7","8","9","|","\n"]
  63. ccp = []
  64. cnter = 0
  65. clorr1 = "\033[35m"
  66. clorr2 = "\033[37m"
  67. clord = 0
  68. os.system('rm XScrap.session || del XScrap.session')
  69. os.system('clear || cls')
  70. chanil = input('\033[37mChannel\033[35m/\033[37mGroup\033[37m:\033[35m')
  71. chanil = chanil.replace('@','')
  72. with TelegramClient(username, api_id, api_hash) as client:
  73. os.system('clear || cls')
  74. print(clorr2 + "Scraping" + clorr1 + " Started...")
  75. for message in client.iter_messages(chanil):
  76. msg = str(message.text)
  77. msgln = len(msg)
  78. rr = 0
  79. cc = ""
  80. lstc = []
  81. while rr != msgln:
  82. if msg[rr] in lst:
  83. if msg[rr] == lst[0]:
  84. cc = cc + lst[0]
  85. elif msg[rr] == lst[1]:
  86. cc = cc + lst[1]
  87. elif msg[rr] == lst[2]:
  88. cc = cc + lst[2]
  89. elif msg[rr] == lst[3]:
  90. cc = cc + lst[3]
  91. elif msg[rr] == lst[4]:
  92. cc = cc + lst[4]
  93. elif msg[rr] == lst[5]:
  94. cc = cc + lst[5]
  95. elif msg[rr] == lst[6]:
  96. cc = cc + lst[6]
  97. elif msg[rr] == lst[7]:
  98. cc = cc + lst[7]
  99. elif msg[rr] == lst[8]:
  100. cc = cc + lst[8]
  101. elif msg[rr] == lst[9]:
  102. cc = cc + lst[9]
  103. elif msg[rr] == lst[10]:
  104. cc = cc + lst[10]
  105. elif msg[rr] == lst[11]:
  106. cc = cc + lst[11]
  107. rr = rr + 1
  108. else:
  109. rr = rr + 1
  110. neme = 'Scraped/%s_Scrapped.txt'% chanil
  111. texti = open(neme, 'a')
  112. #default
  113. if "|" in cc:
  114. cc = cc.split('\n')
  115. ccln = len(cc)
  116. ccl = 0
  117. while ccl != ccln:
  118. if len(cc[ccl]) == 28 and "|" not in str(cc[ccl])[0:14] and "|" not in str(cc[ccl])[26:28] :
  119. if cc[ccl] not in ccp:
  120. ccp.append(cc[ccl])
  121. texti.write(cc[ccl])
  122. texti.write('\n')
  123. texti.close
  124. cnter = cnter + 1
  125. if clord == 0:
  126. clord = 1
  127. print(clorr1 + str(cnter) + clorr2 + "|" + clorr1 + chanil + clorr2 + "|" + clorr1 + "X-Scrap" + clorr2 + "|" + clorr1 + "Pablox_xd" + clorr2 + "|" + clorr1 + "Netro3")
  128. elif clord == 1:
  129. clord = 0
  130. print(clorr2 + str(cnter) + clorr1 + "|" + clorr1 + chanil + clorr2 + "|" + clorr2 + "X-Scrap" + clorr1 + "|" + clorr2 + "Pablox_xd" + clorr1 + "|" + clorr2 + "Netro3")
  131. else:
  132. pass
  133. ccl = ccl + 1
  134. elif len(cc) < 15:
  135. pass
  136. #ccnum
  137. elif cc[0:15].isdigit and cc[0] == "4" or "3" or "5" or "6" and cc.split('\n')[1].isdigit and cc.split('\n')[2].isdigit:
  138. try:
  139. cc = cc.split('\n')
  140. nrte = cc[2]
  141. nrta = cc[3]
  142. if nrte[0] == "2" or nrte[0] == "3" and len(nrte) == 2:
  143. yyyy = "20" + nrte
  144. elif nrta[0] == "2" or nrta[0] == "3" and len(nrta) == 2:
  145. yyyy = "20" + nrta
  146. if len(cc[2]) == 2 and str(cc[2])[0] != "2":
  147. mm = cc[2]
  148. elif len(cc[3]) == 2 and str(cc[3])[0] != "2":
  149. mm = cc[3]
  150. ccer = cc[0] + "|" + mm + "|" + yyyy + "|" + cc[1]
  151. if ccer not in ccp and len(ccer) == 28:
  152. ccp.append(ccer)
  153. texti.write(ccer)
  154. texti.write('\n')
  155. texti.close
  156. cnter = cnter + 1
  157. if clord == 0:
  158. clord = 1
  159. print(clorr1 + str(cnter) + clorr2 + "|" + clorr1 + chanil + clorr2 + "|" + clorr1 + "X-Scrap" + clorr2 + "|" + clorr1 + "Pablox_xd" + clorr2 + "|" + clorr1 + "Netro3")
  160. elif clord == 1:
  161. clord = 0
  162. print(clorr2 + str(cnter) + clorr1 + "|" + clorr1 + chanil + clorr2 + "|" + clorr2 + "X-Scrap" + clorr1 + "|" + clorr2 + "Pablox_xd" + clorr1 + "|" + clorr2 + "Netro3")
  163. else:
  164. pass
  165. except:
  166. pass
  167. else:
  168. pass

comments powered by Disqus