I am trying to get the Twitter API search results for a given hashtag using Python, but I am having problems with this error "There is no JSON object that can be decoded." I had to add an extra% to the end of the url to prevent a string formatting error. Could this JSON error be related to extra%, or is it caused by something else? Any suggestions would be much appreciated.
Excerpt:
import simplejson import urllib2 def search_twitter(quoted_search_term): url = "http://search.twitter.com/search.json?callback=twitterSearch&q=%%23%s" % quoted_search_term f = urllib2.urlopen(url) json = simplejson.load(f) return json
json python simplejson twitter
user374372
source share