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

user.inbox.messages gives short output #65

Closed claydegruchy closed 9 years ago

claydegruchy commented 9 years ago

Real simple in:

user = okcupyd.User()

first_thread = user.inbox[0] print(first_thread.messages.id)

It seems to only put out something like:

<Fetchable[Message][<Message: Senderman sent Otherperson "I have ter...">, ...]>

Is this a limitation or am I missing something?

Cheers friend.

colonelpanic8 commented 9 years ago

read the docstring for fetchable

colonelpanic8 commented 9 years ago

also things might be broken right now

colonelpanic8 commented 9 years ago

Were you able to figure this out: http://okcupyd.readthedocs.org/en/latest/okcupyd.util.html?highlight=fetchable#module-okcupyd.util.fetchable

Let me know if i can close

claydegruchy commented 9 years ago

Hey, I didnt end up sorting this out but only I started python a week ago so don't stress about what I think.

On 4 August 2015 at 08:14, IvanMalison notifications@github.com wrote:

Were you able to figure this out:

http://okcupyd.readthedocs.org/en/latest/okcupyd.util.html?highlight=fetchable#module-okcupyd.util.fetchable

Let me know if i can close

— Reply to this email directly or view it on GitHub https://github.com/IvanMalison/okcupyd/issues/65#issuecomment-127504830.

Clay DeGruchy.

claydegruchy commented 9 years ago

Scratch that, I just looked into it again then. seems I wasnt putting the right elements in.

I was using okcupyd.user.User(session).inbox[0]

which was only returning the title of the inbox. but what i really needed was

okcupyd.user.User(session).inbox[0].messages[0].content

which returns the full message.

thanks for your help.

On 4 August 2015 at 09:18, GeDruchy . clay.degruchy@gmail.com wrote:

Hey, I didnt end up sorting this out but only I started python a week ago so don't stress about what I think.

On 4 August 2015 at 08:14, IvanMalison notifications@github.com wrote:

Were you able to figure this out:

http://okcupyd.readthedocs.org/en/latest/okcupyd.util.html?highlight=fetchable#module-okcupyd.util.fetchable

Let me know if i can close

— Reply to this email directly or view it on GitHub https://github.com/IvanMalison/okcupyd/issues/65#issuecomment-127504830 .

Clay DeGruchy.

Clay DeGruchy.

colonelpanic8 commented 9 years ago

Cool, glad I could help.