Re: New to python-twitter: GetDirectMessages() issue

85 views
Skip to first unread message

bear

unread,
Mar 20, 2013, 8:42:11 AM3/20/13
to python-...@googlegroups.com
can you include more of the code so I can see the context of the error?

my hunch is that you are looping thru the items in the returned list but trying to print the list


On Wed, Mar 20, 2013 at 1:10 AM, Ricky Sistrunk <rs8...@gmail.com> wrote:
I've successfully created scripts that will post a direct message or a status message with no problems whatsoever. I am having issues with getting the id and text from direct messages sent to me however. Excuse my newbiness 

Here is the error I get:

Traceback (most recent call last):
  File "direct.py", line 15, in <module>
    print directMessages.text
AttributeError: 'list' object has no attribute 'text'


--
You received this message because you are subscribed to the Google Groups "python-twitter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-twitte...@googlegroups.com.
To post to this group, send email to python-...@googlegroups.com.
Visit this group at http://groups.google.com/group/python-twitter?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Bear

be...@xmpp.org (email)
bea...@gmail.com (xmpp, email)
be...@code-bear.com (xmpp, email)
http://code-bear.com/bearlog (weblog)

PGP Fingerprint = 9996 719F 973D B11B E111  D770 9331 E822 40B3 CD29
Reply all
Reply to author
Forward
0 new messages