import json import datetime import time import requests import os import pytz headers = { "app_version": "6.9.4", "platform": "ios", "content-type": "application/json", "User-agent": "Tinder/7.5.3 (iPhone; iOS 10.3.2; Scale/2.00)", "X-Auth-Token": os.environ["TINDER_TOKEN"], } if __name__ == "__main__": host = "https://api.gotinder.com" tinder_token = os.environ["TINDER_TOKEN"] while True: try: print( requests.post( host + "/profile", headers=headers, data=json.dumps( { "bio": f"It's {datetime.datetime.utcnow().replace(tzinfo=pytz.UTC).astimezone(pytz.timezone('America/Los_Angeles')).strftime('%I:%M')} and you're on Tinder instead of watching Neon Genesis Evangelion with me." } ), ).json() ) except requests.exceptions.RequestException as e: print(e) time.sleep(60)