Hello,
I am trying to filter by Twitter responses, however I never find
generator = twitter. I have tried multiple search terms, but no luck.
Is twitter not supported at the moment?
My code is:
import urllib
import simplejson as json
api_key = "key"
# Get search results, json response:
query = 'london'
search_data = '
http://api.contextvoice.com/1.2/resources/search/?q=
%s&apikey=%s&format=json&count=100' % (query, api_key)
r = urllib.urlopen(search_data).read()
r = json.loads(str(r))
results = r["results"]
for n in results:
if n["generator"] == "twitter":
print n
Cheers,
Phil
--
You received this message because you are subscribed to the Google Groups "contextvoice-dev" group.
To post to this group, send email to
contextv...@googlegroups.com.
To unsubscribe from this group, send email to
contextvoice-d...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/contextvoice-dev?hl=en.