Sunday, March 16, 2014

Tinder autoliker

Tinder is an app that is a recent craze among dating apps. It is good because it is simple and before you know it you are chatting with potential partner. That's the theory. In practice, like every dating app it is overloaded with males and suffers from shortage of females. This means that males need to like many many girls before they get a match. In fact better strategy is to just like every girl and then discard the ones you don't like once you get a match. But that means that you need to very annoyingly keep on clicking like for entire day. Well, not anymore...

To save my phone's battery and preserve mobility, I spawned an android emulator (part of standard android SDK). I downloaded Tinder 2.2.1 SDK from the web and installed the app by issuing:

adb install tinder-apk-file

which almost got me a working tinder app except, it was stuck at finding matches screen. After a bit of digging and thinking about possible reasons I realized it's missing a location. This could be fixed by issuing:

telnet localhost 5554

and then typing:

geo fix longtitude latitude 

Where latitude and longtitude can be obtained for example here . Don't forget to check that you got the right spot by typing where am i in Google on emulator. After that's done we have a working tinder app on emulator and all we need to do is simulate touches, which can be done by monkeyrunner (in tools directory in android sdk). I was originally using this script but I modified it to randomize click time and click location in case Tinder did some bot detection. To run the script simply type: (sometimes you will get Java errors - just run it second time, they will be resolved):


Below is a simple demo:

Good luck and have fun!


  1. Could you share your final script?

  2. OK, so here's monkeyrunner script, your home work is to work out how to run it! :)
    # Run this script using Monkeyrunner.

    import commands
    import time
    import random
    from import MonkeyRunner, MonkeyDevice

    def click(device, x, y):
    device.touch(x, y, MonkeyDevice.DOWN_AND_UP)

    def n(mu, sigma, integer=False, nonzero=False):
    x = random.gauss(mu, sigma)
    if nonzero:
    x = max(0, x)
    if integer:
    x = int(x)
    return x

    def restartTinder(device):
    print "restarting tinder"
    # goto menu'KEYCODE_HOME', MonkeyDevice.DOWN_AND_UP)
    print "should be in menu now"
    package = 'com.tinder'
    activity = 'com.tinder.activities.ActivitySplash_'
    runComponent = package + '/' + activity
    print "done"

    def main():
    device = MonkeyRunner.waitForConnection()
    while True:
    click(device, n(800, 5, integer=True), n(1600, 5, integer=True))
    time.sleep(n(1, 0.2, nonzero=True))

    if __name__ == '__main__':

    1. second homework is apparently indentation....

    2. ok fine there you go:

  3. Thanks! I just run it with monkeyrunner from the command line - ez pz :D

    1. Sure. Good luck on your future endaevors! ;)

  4. still struggling to run this script i get the following error:

    140430 17:28:27.710:S [main] [] Scri
    pt terminated due to an exception
    140430 17:28:27.710:S [main] []Synta
    xError: ("mismatched input ' ' expecting EOF", ('C:\\Program Files\\Android\\
    adt-bundle-windows-x86-20140321\\sdk\\tools\\', 3, 4, ' import com

    140430 17:28:27.710:S [main] []
    at org.python.core.ParserFacade.fixParseError(
    140430 17:28:27.710:S [main] []
    at org.python.core.ParserFacade.parse(
    140430 17:28:27.710:S [main] []
    at org.python.core.Py.compile_flags(
    140430 17:28:27.710:S [main] []
    at org.python.core.__builtin__.execfile_flags(
    140430 17:28:27.710:S [main] []
    at org.python.util.PythonInterpreter.execfile(
    140430 17:28:27.710:S [main] []
    140430 17:28:27.710:S [main] []

    140430 17:28:27.710:S [main] []

    can you help?. Also will it work on any emulator? im using Bluestacks.

    1. Not sure what bluestacks is, I am using standard emulator that comes with andorid sdk.

      Looking at your exception I think either your setup is just broken, or maybe you are using windows newlines instead of linux newlines, which is probably what the monkeyrunner is expecting. I am not a windows expert but try using notepad++ for editing your code that might solve the issue.

    2. you're right! i am using windows! But i have no idea what you mean by "newlines" and as for editing the code?! :s (i wasn't even aware i needed to edit it!...). So my questions are:

      What is Newlines?
      what parts in the code do i need to edit?

    3. Newlines are characters that you computer recognizes as end of the line and start of another. If you ever programmed in HTML "
      " is a newline. If in C++ or something similar then you are probably familiar with "\n".

      Basically you need to open the code in notepad++ and save it. If that's not helping make sure notepad++ is set up so that it inserts linux newlines. To quickly verify you did it right, open the code in normal windows notepad and it should look all screwed up (because Windows notepad does not recognize Linux newlines).

      All that being said even if you managed to do what I said I am not 100% sure it will resolve your issue.

      If you have further problems, please post your question on (feel free to post link to your question in comment though - if I find some time I will try to answer it).

      Good luck!

  5. This comment has been removed by the author.

  6. this is amazing. i am a beginner and getting into android programming, and this is really helpful, i have learned a lot already. unfortunately i cannot get it running. it does everything fine but when it comes to the touch event, it throws an error. can you help me out with this?

    140616 01:29:31.753:S [main] [] Error sending touch event: 804 1598 DOWN_AND_UP
    140616 01:29:31.753:S [main] [] Broken pipe
    140616 01:29:31.753:S [main] [] at Method)
    140616 01:29:31.753:S [main] [] at
    140616 01:29:31.753:S [main] [] at

    1. Whats the output of
      adb devices

    2. List of devices attached
      emulator-5554 device

      - is it important which kind of device I use or how i configure my emulator?

    3. I am really not sure what that might be. Try different os/sdk version. Also you might have some weird firewall settings...

  7. hi Szymon Sidor, we are working one project which have same photo slider like Tinder. It is back office app we are looking for only photo slider/photo frame ... please let me know if you can help us.