twitter error

Asked by Dirk Nachbar

I get this error

    result = y.execute(query)
  File "C:\Python26\lib\site-packages\yql-0.6-py2.6.egg\yql\__init__.py", line 336, in execute
    raise YQLError, (resp, content)
YQLError: u'No definition found for Table twitter.users'

Does twitter need special credentials? Is it https issue?

Dirk

Question information

Language:
English Edit question
Status:
Answered
For:
python-yql Edit question
Assignee:
Stuart Colville Edit question
Last query:
Last reply:
Revision history for this message
Stuart Colville (muffinresearch) said :
#1

You need to tell YQL to use the twitter.users table like so:

import yql
y = yql.Public()
query="""USE 'http://www.datatables.org/twitter/twitter.users.xml';
         select * from twitter.users where id='2566921'"""
result = y.execute(query)
result.rows
for row in result.rows:
    print row

Can you help with this problem?

Provide an answer of your own, or ask Dirk Nachbar for more information if necessary.

To post a message you must log in.