get Cc details


SUBMITTED BY: Guest

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

FORMAT: Python

SIZE: 6.9 kB

HITS: 587

  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. """
  32. os.system('clear || cls')
  33. print ("\033[35m" + artt)
  34. try:
  35. apiss = open('api.txt','r')
  36. apis = apiss.readlines()
  37. except:
  38. apiss = open('api.txt','w')
  39. apiss.close()
  40. apiss = open('api.txt','r')
  41. apis = apiss.readlines()
  42. if apis == []:
  43. api_id = int(input("\033[35mApi\033[37mId: \033[35m"))
  44. api_hash = input("\033[35mApi\033[37mHash: \033[35m")
  45. api_id = int(str(api_id).replace(' ',''))
  46. api_hash = api_hash.replace(' ','')
  47. apiss = open('api.txt', 'w')
  48. apiss.write(str(api_id))
  49. apiss.write('\n')
  50. apiss.write(api_hash)
  51. apiss = apiss.close()
  52. ewdewde = input("\n\033[35mPress enter to \033[37mcontinue\033[35m.")
  53. os.system('clear || cls')
  54. elif len(apis) == 2:
  55. api_id = int(apis[0])
  56. api_hash = apis[1]
  57. print ("\033[35mApi\033[37mId: " + "\033[35m" + str(api_id))
  58. print ("\033[35mApi\033[37mHash: " + "\033[35m" + api_hash)
  59. print("\n\033[35mIf you want to change your \033[37mapi\033[35m delete '\033[37mapi.txt\033[35m'.")
  60. sdwed = input("\033[37mPress enter to \033[35mcontinue\033[37m.")
  61. os.system('clear || cls')
  62. username = 'XScrap'
  63. lst = ["0","1","2","3","4","5","6","7","8","9","|","\n"]
  64. ccp = []
  65. cnter = 0
  66. clorr1 = "\033[35m"
  67. clorr2 = "\033[37m"
  68. clord = 0
  69. os.system('rm XScrap.session || del XScrap.session')
  70. os.system('clear || cls')
  71. chanil = input('\033[37mChannel\033[35m/\033[37mGroup\033[37m:\033[35m')
  72. chanil = chanil.replace('@','')
  73. with TelegramClient(username, api_id, api_hash) as client:
  74. os.system('clear || cls')
  75. print(clorr2 + "Scraping" + clorr1 + " Started...")
  76. for message in client.iter_messages(chanil):
  77. msg = str(message.text)
  78. msgln = len(msg)
  79. rr = 0
  80. cc = ""
  81. lstc = []
  82. while rr != msgln:
  83. if msg[rr] in lst:
  84. if msg[rr] == lst[0]:
  85. cc = cc + lst[0]
  86. elif msg[rr] == lst[1]:
  87. cc = cc + lst[1]
  88. elif msg[rr] == lst[2]:
  89. cc = cc + lst[2]
  90. elif msg[rr] == lst[3]:
  91. cc = cc + lst[3]
  92. elif msg[rr] == lst[4]:
  93. cc = cc + lst[4]
  94. elif msg[rr] == lst[5]:
  95. cc = cc + lst[5]
  96. elif msg[rr] == lst[6]:
  97. cc = cc + lst[6]
  98. elif msg[rr] == lst[7]:
  99. cc = cc + lst[7]
  100. elif msg[rr] == lst[8]:
  101. cc = cc + lst[8]
  102. elif msg[rr] == lst[9]:
  103. cc = cc + lst[9]
  104. elif msg[rr] == lst[10]:
  105. cc = cc + lst[10]
  106. elif msg[rr] == lst[11]:
  107. cc = cc + lst[11]
  108. rr = rr + 1
  109. else:
  110. rr = rr + 1
  111. neme = 'Scraped/%s_Scrapped.txt'% chanil
  112. texti = open(neme, 'a')
  113. #default
  114. if "|" in cc:
  115. cc = cc.split('\n')
  116. ccln = len(cc)
  117. ccl = 0
  118. while ccl != ccln:
  119. if len(cc[ccl]) == 28 and "|" not in str(cc[ccl])[0:14] and "|" not in str(cc[ccl])[26:28] :
  120. if cc[ccl] not in ccp:
  121. ccp.append(cc[ccl])
  122. texti.write(cc[ccl])
  123. texti.write('\n')
  124. texti.close
  125. cnter = cnter + 1
  126. if clord == 0:
  127. clord = 1
  128. print(clorr1 + str(cnter) + clorr2 + "|" + clorr1 + chanil + clorr2 + "|" + clorr1 + "X-Scrap" + clorr2 + "|" + clorr1 + "Pablox_xd" + clorr2 + "|" + clorr1 + "Netro3")
  129. elif clord == 1:
  130. clord = 0
  131. print(clorr2 + str(cnter) + clorr1 + "|" + clorr1 + chanil + clorr2 + "|" + clorr2 + "X-Scrap" + clorr1 + "|" + clorr2 + "Pablox_xd" + clorr1 + "|" + clorr2 + "Netro3")
  132. else:
  133. pass
  134. ccl = ccl + 1
  135. elif len(cc) < 15:
  136. pass
  137. #ccnum
  138. 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:
  139. try:
  140. cc = cc.split('\n')
  141. nrte = cc[2]
  142. nrta = cc[3]
  143. if nrte[0] == "2" or nrte[0] == "3" and len(nrte) == 2:
  144. yyyy = "20" + nrte
  145. elif nrta[0] == "2" or nrta[0] == "3" and len(nrta) == 2:
  146. yyyy = "20" + nrta
  147. if len(cc[2]) == 2 and str(cc[2])[0] != "2":
  148. mm = cc[2]
  149. elif len(cc[3]) == 2 and str(cc[3])[0] != "2":
  150. mm = cc[3]
  151. ccer = cc[0] + "|" + mm + "|" + yyyy + "|" + cc[1]
  152. if ccer not in ccp and len(ccer) == 28:
  153. ccp.append(ccer)
  154. texti.write(ccer)
  155. texti.write('\n')
  156. texti.close
  157. cnter = cnter + 1
  158. if clord == 0:
  159. clord = 1
  160. print(clorr1 + str(cnter) + clorr2 + "|" + clorr1 + chanil + clorr2 + "|" + clorr1 + "X-Scrap" + clorr2 + "|" + clorr1 + "Pablox_xd" + clorr2 + "|" + clorr1 + "Netro3")
  161. elif clord == 1:
  162. clord = 0
  163. print(clorr2 + str(cnter) + clorr1 + "|" + clorr1 + chanil + clorr2 + "|" + clorr2 + "X-Scrap" + clorr1 + "|" + clorr2 + "Pablox_xd" + clorr1 + "|" + clorr2 + "Netro3")
  164. else:
  165. pass
  166. except:
  167. pass
  168. else:
  169. pass

comments powered by Disqus