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 to search for those who you have not contacted? #49

Closed markyann11 closed 9 years ago

markyann11 commented 9 years ago

I see this part of the code in search.py but I dont know how to use it so I can only message people I have not messaged before. def contacted(self): return bool(xpb.div.withclass('fancydate').apply(self._div))

colonelpanic8 commented 9 years ago

I don't believe that it is possible to make search only return people that you haven't contacted, but it should be easy to perform some action only on those you havent contacted: as follows:

for profile in user.search():
   if not profile.contacted:
      profile.message("Hey")
markyann11 commented 9 years ago

@IvanMalison awesome thanks !