from files.db_query import saveTweets
twitter_account = ["@SarahJindra","@wazetrafficchi","@GetRaasta","@dtptraffic","@TrafflineDEL","@TrafflineCHN","@TrafflineIndore","@TotalTrafficCHI","@TfL","@HighwaysSEAST","@BillWest5","@John_Kass","@iKartikRao","@shelvieana_prat",
"@prats_09","@94_294_tollway","@DildineMedia","@CrazyRicardo","@TotalTrafficNYC","@WazeTrafficNYC","@Traffic4NY","@NYTrafficAlert","@NYC_DOT","@511NYC","@NYPD_Traffic",
"@NYCityAlerts","@TotalTrafficNYC",]
numbr_of_tweets = 2000
for twitter_id in twitter_account:
    print "Saving Data for",twitter_id
    saveTweets('user_timeline',twitter_id,numbr_of_tweets)
    print "\n"
chicago = "41.881832,-87.627760,30km"
chennai = "13.083162,80.282758,30km"
new_york = "40.714264,-73.978499,30km"
london = "51.505234,-0.111244,30km"
newdelhi = "28.612952,77.211953,30km"
indianapolis = "39.767927,-86.158749,30km"
bombay ="19.110914,72.885140,30km"
new_jersey = "40.279865,-74.517549,30km"
locations = [chicago,chennai,new_york,london,newdelhi,indianapolis,bombay,new_jersey]

words = ['#traffic','marriage','happy','rain','water','drain','traffic','road','block','road accidents','accidents','congestion','construction',"frustated","stuck"]
for geo_location in locations:
    for word in words:
        print "Saving Data for",geo_location
        saveTweets(word,[word,geo_location],numbr_of_tweets)
    


#need to call both of function

Update main.py