colonelpanic8 / okcupyd

A Library that enables programmatic interaction with okcupid.com, using okcupid.com's private okcupid JSON API and html scraping when necessary.
MIT License
110 stars 18 forks source link

How does the distance/location filter work? #54

Closed chrism2671 closed 9 years ago

chrism2671 commented 9 years ago

I'm trying to build a search with e.g. distance = 100km of location = London, UK, just like on the website.

I can see the location parameter is an integer, so I'm guessing this is a distance. If so, where does the location string go, or is it some kind of location ID from OKC?

This is my current search.

results = u.search(age_min=25, age_max=33,order_by='match', height_max=78)
colonelpanic8 commented 9 years ago

http://okcupyd.readthedocs.org/en/latest/public.html#searchfetchable . location – A location string which will be used to filter results. radius (int) – The maximum distance from the specified location of returned search results.

chrism2671 commented 9 years ago

Super, thank you!