Skip to content

Instantly share code, notes, and snippets.

@drinks
Created September 1, 2011 20:39
Show Gist options
  • Save drinks/1187210 to your computer and use it in GitHub Desktop.
Save drinks/1187210 to your computer and use it in GitHub Desktop.
YQL null response
>>> import yql
>>> y = yql.Public()
>>> appid = 't4RpMGDV34GSa2qGuiJ1aC_WG8xmsw6lM5psHclL0Yawu2.wZm1ejtuGSLndPWdx5oyDrDQ-'
>>> query = 'select * from search.spelling where query="%s" and appid="%s"' % ('janet nopalitano', appid)
>>> r = y.execute(query)
>>> r.raw
{u'count': 0, u'lang': u'en-US', u'results': None, u'created': u'2011-09-01T20:38:10Z'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment