@@ -0,0 +1,496 @@
+import api_keys%0Aimport json %0Afrom TwitterAPI import TwitterAPI%0A%0A%0Aapi = TwitterAPI(api_keys.consumer_key, api_keys.consumer_secret,  api_keys.access_token, api_keys.access_secret)%0A%0Ahashtag = 'pizza'%0Aresults = api.request('search/tweets', %7B'q': hashtag.strip(), 'lang': 'ar'%7D) # only limited to 15 tweets %0Acount = 0%0Aoutfile = open('%7B%7D.json'.format(hashtag), mode='w')%0Afor tweet in results:%0A    outfile.write(json.dumps(tweet))%0A    outfile.write('%5Cn')%0A    count += 1%0Aprint('%7B%7D tweets'.format(count))

add twitter API search lib (limited to 15 tweets result)