Live data from Hacker News

Stalking your Facebook friends on Tinder

defaultnamehere.tumblr.com

51–60 of 112 posts

Re: Stalking your Facebook friends on Tinder

#52
post #6

'gender’: 1, // 1 is female, 0 is male. C’mon Tinder that’s not how gender works C'mon Tinder.

Are there more than two genders now?

Yes, and I'm not sure why he's getting downvoted. This is a legitimate Facebook feature.

Gender can be either Male, Female, or Custom, and Facebook gives you the option to choose which gender pronouns you prefer. Thus, to see it represented as a boolean is unusual. I'm curious as to what the value of that field is when a user has chosen Facebook's custom gender display options.

Re: Stalking your Facebook friends on Tinder

#55
I spent about 30-45 minutes trying to get this to work out of the box. Not sure if It's because my Python is rusty or maybe my installs are screwy. Either way, In order to get this to work, I ended up curling the tinder API to get my token.

  curl -v -X POST 'https://api.gotinder.com/auth' -H 'Content-Type: application/json' --data '{"facebook_token": "facebook_token_string", "facebook_id": "facebook_id_string"}'
With that I modified the python code to no longer POST to get the X-Auth-Token and just pasted it in there:

        self.headers["X-Auth-Token"] = 'auth_token_string'
        print("Authenticated to Tinder ")
        self.authed = True
        print self.authed
After that, everything worked fine!

Re: Stalking your Facebook friends on Tinder

#56
What is the format for the SECRETS.json file since it needs to include both the auth token and the facebook id?

f = open(SECRETS.json) self.fb_auth = json.load(f)

So does it matter what I name the auth parameters or just that I set the values correctly?

i.e:

{ "auth_token" : "TOKENVAL", "fb_id" : "IDVAL" }

Re: Stalking your Facebook friends on Tinder

#58
post #40

Earlier quoted context omitted.

virtualenv venv --python=python3.5 source venv/bin/activate pip install -r requirements.txt

first line isn't working for me virtualenv venv --python=python3.5 Running virtualenv with interpreter /usr/local/bin/python3.5 Using base prefix '/Library/Frameworks/Python.framework/Versions/3.5' New python executable in venv/bin/python3.5 Also creating executable in venv/bin/python Failed to import the site module Traceback (most recent call last): File "/Users/ericlw/Development/tinder-detective/venv/bin/../lib/p…

  brew install python3.5
Post reply on HN