Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests, json
- from threading import Thread
- class Karasik(Thread):
- def __init__(self):
- Thread.__init__(self)
- self.url = 'https://api.cryptopepe.co/'
- self.data = {'method': 'roll', 'token': 'Сюда токен'}
- def run(self):
- while True:
- try:
- r = requests.post(self.url, data = self.data, headers = self.headers)
- r = json.loads(r.text)['response']['user']
- lastRoll = r['lastRollId']
- message = r['message']
- dubs = r['dubs']
- trips = r['trips']
- quads = r['quads']
- print(f'{message} {lastRoll} Даблов: {dubs} Триплов: {trips} Квадов: {quads}')
- except:
- print('Ошибочка.')
- if __name__ == '__main__':
- for i in range(10):
- karas = Karasik()
- karas.start()
Add Comment
Please, Sign In to add comment