Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import time
- API_KEY = '<MY_API_KEY>'
- total = 0
- empty = 0
- while True:
- rsp = requests.get(f'https://api.torn.com/user/?selections=log&to=1673884800&key={API_KEY}')
- if rsp.json()['log'] is None:
- empty += 1
- total += 1
- if total % 1 == 0:
- print(f'Total: {total}, Empty: {empty}')
- time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment