Skip to main content

Tinder API - You don't need to hold your phone anymore to submit tinder likes

Project description

Tinder API Reverse Engineering

Tinder API is a library that helps you deal with tinder without using the browser also in future version it will have an AI class that will help you train/test your model with simple steps

Installation

Use the package manager tinder-api to install foobar.

pip install tinderapi

The Purpose Of The Library

Create an AI Model that decide a binary choice 1 = Like and 0 = Dislike based on a database created using tinder database. This library will create a database using SQLite by delaut called Tinder.db were all the data will be stored

To prepare your database for training you can use scave.py

from tinderapi import Scavenger
import json

ACCOUNT = json.loads(open('account.json', 'r').read())

scavenger = Scavenger('Photos', ACCOUNT['telegram_bot_access_token'], ACCOUNT['chat_id'])

When scave.py is running you'll receive one picture for a random user and you'll get 3 choices (like, dislike and next)

  • Like: change like stat in the DB to 1
  • Dislike: change like stat in the DB to -1
  • Next: get the next picture (if it's the last photo it will skip the user)

Usage

Change Tinder X-AUTH-TOKEN and create a Telegram Bot to receive LIVE Update in account.json

  • tinder_auth: open google chrome devtool and search into request headers for x-auth-token

  • telegram_bot_access_token: create a bot using bot father https://web.telegram.org/z/#93372553

  • chat_id: send a message to the bot and check your is in api.telegram.org/bot{your_access_token}/getUpdates

  • group_id: create a group and add the bot to it you'll find the group_id in api.telegram.org/bot{your_access_token}/getUpdates (it's always a negative number)

{
  "tinder_auth": "cb10ca8b-xxxx-xxxx-xxxx",
  "telegram_bot_access_token": "51xxx83571:xxxxxxxxxxxxxxx",
  "chat_id": 543xxxxxxx,
  "group_id": -718xxxxxx
}

Example

import time
from tinderapi import Tinder, TinderProfile, TinderDB, Telegram
import random
import json

ACCOUNT = json.loads(open('account.json', 'r').read())

AUTH_TOKEN = ACCOUNT['tinder_auth']
DB = TinderDB()


def liker():
    while True:
        TinderAcc = Tinder(AUTH_TOKEN)
        telegram = Telegram(telegram_key=ACCOUNT['telegram_bot_access_token'], chat_id=ACCOUNT['group_id'])
        matches = TinderAcc.get_potential_matches(verbose=False)
        if matches == -1:
            break
        elif matches == 2:
            telegram.sendMessage('Timeout waiting 5 min')
            time.sleep(60 * 5)
        else:
            for potential_match in matches:
                profile = TinderProfile(potential_match, AUTH_TOKEN, save_pics=True)
                print(profile.getAll())
                profile.like() # for dislike profile.dislike()
                telegram.sendPhoto(f'{profile.name} - {profile.birth_date.split("-")[0]} - {profile.distance_km} KM',
                                   f'Photos/{profile.id}')
                DB.insert_into_table(profile)

                time.sleep(random.randint(1, 4))

        print('Searching New Matches...')
        telegram.sendMessage('Searching for new matches...')


if __name__ == '__main__':
    liker()

To-Do

  • Add TensorFlow simplfied classes for Tinder
  • Finish first Ai Model
  • Host The app on a Django server
  • much more

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tinderapi-1.0.6.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tinderapi-1.0.6-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file tinderapi-1.0.6.tar.gz.

File metadata

  • Download URL: tinderapi-1.0.6.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for tinderapi-1.0.6.tar.gz
Algorithm Hash digest
SHA256 2d5531e683741d29ada1ea2916b505048c4b9e165ad47a504a6735be20ef6be5
MD5 90a3a67188110fc328d627d274b721eb
BLAKE2b-256 deebc3c5f6137a2d82a4849bc5aee518449f1839d719aff202a59420bd45e253

See more details on using hashes here.

File details

Details for the file tinderapi-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: tinderapi-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for tinderapi-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 747587fb7aa30f5cb79fd15f6ed17fd80ccdeb43d7f8b82f7c495c65e2e328c2
MD5 1d70f80d7144806950ad1e47bb2954a4
BLAKE2b-256 60da100fa01647b47475f1d2f021920b4a4136f721bab5ef2601837291a7a6c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page