Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try this:</p> <pre><code>import simplejson import httplib2 import twitter api = twitter.Api(consumer_key='consumer key', consumer_secret='consumer secret', access_token_key='access token', access_token_secret='access token secret') search = api.GetSearch(term='$aapl', geocode=None, since_id=None, max_id=None, until=None, count=15, lang=None, result_type='mixed', include_entities=None) #if you're not printing to the console, e.g. you're printing to a file print [s.text+'\n' for s in search] #otherwise use this import pprint pprint.pprint([s.text for s in search]) </code></pre> <p>it looks like this for me:</p> <pre><code>[u'Sales at Apple stores have fallen 4.5% per square foot. The search for a new head of retail: http://t.co/YQ0LQGXfXp $AAPL', u'In rare move, Obama administration vetoes ban on sale of some Apple devices. http://t.co/UMCTcC1TQu $AAPL', u"AT&amp;T claims it's the 1st U.S. store, even before Apple, to do away completely w/o cash registers. http://t.co/pWmTQCHlBm $T @ATT $aapl $VZ"] </code></pre> <p>or this also:</p> <pre><code>from __future__ import print_function [print(s.text,'\n') for s in search] </code></pre> <p>which looks like</p> <pre><code>Sales at Apple stores have fallen 4.5% per square foot. The search for a new head of retail: http://t.co/YQ0LQGXfXp $AAPL In rare move, Obama administration vetoes ban on sale of some Apple devices. http://t.co/UMCTcC1TQu $AAPL AT&amp;T claims it's the 1st U.S. store, even before Apple, to do away completely w/o cash registers. http://t.co/pWmTQCHlBm $T @ATT $aapl $VZ </code></pre> <p>to confirm; you're ok with the data, you just want it to print out differently?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload