Skip to content

Instantly share code, notes, and snippets.

@philangist
Last active November 16, 2015 12:32
Show Gist options
  • Save philangist/e5f94bfb887f56958667 to your computer and use it in GitHub Desktop.
Save philangist/e5f94bfb887f56958667 to your computer and use it in GitHub Desktop.
Tinder Bot
import requests
import time
# Tinder beefed up their API security, so it's no longer possible to grab the facebook OAuth
# token and use it to dynamically retreive this value. You'll have to manually inspect the returned
# call using Charles or some other reverse https proxy for now.
access_token = "SOME_SESSION_KEY"
# some very simple backoff logic
backoff = [1,2,4,8,16,0]
def tinder_all_the_girls(access_token):
i = 0
headers = {
'X-Auth-Token': access_token,
'User-Agent': 'Tinder Android Version 4.0.3',
}
while True:
try:
resp = requests.get('https://api.gotinder.com/user/recs?locale=en', headers=headers)
if resp.status_code == 401:
print 'Session with access token %s expired!' % access_token
break
recommended_users = resp.json()['results']
for user in recommended_users:
resp = requests.get(
'https://api.gotinder.com/like/%s' % user['_id'],
headers=headers
)
if resp.ok:
print 'Liked user %s. Her name was %s' % (user['_id'], user['name'])
except (requests.ConnectionError, KeyError) as e:
# backoff for 15, 30, 60, 120, 240, or 0 seconds
cooldown = 15 * backoff[i % len(backoff)]
print 'exception %s raised! sleeping for %s seconds' % (repr(e), cooldown)
time.sleep(cooldown)
i += 1
if __name__ == '__main__':
tinder_all_the_girls(access_token)
@ashifaf
Copy link

ashifaf commented Sep 14, 2015

Are you looking for stable Tinder accounts?
3 same girl picture per account
Female name(usa)
Age 18-22
My Accounts can find thousands of matches....skype: ashifaf.skype

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment