Exemplo n.º 1
0
"""Sample script that downloads the profile pictures of all 5'6"-5'8" Buddhists
living in New York, NY who either do not smoke or are trying to quit.
"""
import okcupyd

session = okcupyd.Session.login()
u = okcupyd.User(session)
profiles = u.search(location='new york, ny',
                    religion='buddhist',
                    height_min=66,
                    height_max=68,
                    gentation='everybody',
                    smokes=['no', 'trying to quit'])

for profile in profiles[:2]:
    for photo_info in profile.photo_infos:
        print(photo_info.jpg_uri)
Exemplo n.º 2
0
import okcupyd

u = okcupyd.User()
p = u.quickmatch()

# How to use other users questions:
for q in p.questions:
    if 'marijuana' in q.text.lower():
        print(q.text)
        print(q.their_answer)
        if q.their_note and len(q.their_not):
            print(q.their_note)
        print('')