Code Monkey home page Code Monkey logo

tinder.py's Introduction

Python Linting license-shield Version Compatibility

Tinder.py

comprehensive and feature rich wrapper for the Tinder API


Note: This is an unofficial project, and I have nothing to do with Tinder nor their API. I take no responsibility for any potential damage, banned accounts or other troubles related to this project!


The following example will demonstrate how easy it is to use this wrapper:

client = TinderClient("X-Auth-Token")

# Like recommended users
for recommendation in client.get_recommendations():
    recommendation.like()
    print(f"Liked user {recommendation.name}")
    
# Send a message to all matches
for match in client.load_all_matches():
    match.send_message("Hello World")

Features

  • completely wrapped Tinder models
  • caching
  • rate limiting
  • intuitive api design

Authentication

Tinder uses Basic Authentication with UUID strings. To get your token, first login to Tinder in your browser. Then, open the network tab and filter for api.gotinder.com. Choose any GET or POST request and go to the Request Headers. There, you'll find the X-Auth-Token header containing the auth token. Please note: you might need to perform some actions first (for example liking a user) before you see any requests.

Download

pip install rednit.py

Credits

  • @fbessez and @rtt for their initial reverse engineering back in 2018 and 2014.
  • @SnowJuli for their work on the docs and the linting workflow
  • @MeerBiene for his support and general ideas
  • and many more

tinder.py's People

Contributors

kaktushose avatar snowjuli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tinder.py's Issues

KeyError when trying to create new TinderClient instance

Hey all!

When creating a TinderClient instance I got this error thrown at me.
/*
DEBUG:tinder-py:Sending GET request to https://api.gotinder.com/profile
DEBUG:tinder-py:Got response: 200
Traceback (most recent call last):
File "DIR\test.py", line 5, in
client = TinderClient(token, 1, 10)
File "DIR\tinder\tinder.py", line 30, in init
self._self_user = self.get_self_user()
File "DIR\tinder\tinder.py", line 147, in get_self_user
return SelfUser(response, self._http)
File "DIR\tinder\entities\user.py", line 210, in init
super().init(user, http)
File "DIR\tinder\entities\user.py", line 157, in init
self.photos: Tuple[GenericPhoto] = tuple(GenericPhoto(p, http) for p in user["photos"])
File "DIR\tinder\entities\user.py", line 157, in
self.photos: Tuple[GenericPhoto] = tuple(GenericPhoto(p, http) for p in user["photos"])
File "DIR\tinder\entities\photo.py", line 108, in init
self.crop_info: CropInfo = CropInfo(photo["crop_info"])
KeyError: 'crop_info'
*/

I copied the "client = TinderClient("X-Auth-Token")" Statement from your exampke with my personal token.
Thanks in advance!

Tobias

GitHub Repository

  • Plan out Readme
    • "Code Structure"
    • How to use?
    • git-badges?
    • contributers Bot?
    • ??
  • Templates
    • Issue
    • PR
  • dev branch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.