Skip to content

Instantly share code, notes, and snippets.

@colonelpanic8
Created October 29, 2014 04:46
Show Gist options
  • Select an option

  • Save colonelpanic8/a767ac23b97548eb114a to your computer and use it in GitHub Desktop.

Select an option

Save colonelpanic8/a767ac23b97548eb114a to your computer and use it in GitHub Desktop.
from okcupyd import User
def stuff():
user = User()
profiles = user.search()
for profile in profiles[:1]:
for q in profile.questions[:10]:
# encoding data to utf8
quest = str(str(q.text).encode('utf8'))[2:-1]
ans = str(str(q.their_answer).encode('utf8'))[2:-1]
# outputting of data
print(user.get_question_answer_id(q))
print(quest)
print(ans)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment