How to retrieve tweets from all cities using Twint package in python?
You are only seeing the last one since you overwrite your object df at each iteration and when the loop is finished it will store only the last value store which happens to be mumbai
If you want to create a DataFrame with all the results you should do something like this:
ldf = list()
india = [&quot;chennai&quot;,&quot;pune&quot;,&quot;mumbai&quot;]
for city in india:
    print(city)
    c = twint.Config()
    c.Search = &quot;phone&quot;
    c.Lang= &quot;en&quot;
    c.Pandas = True
    c.Since = &quot;2021-01-01&quot;
    c.Near = city
    c.Limit = 10
    twint.run.Search(c)
    tmp = twint.output.panda.Tweets_df([&quot;date&quot;,&quot;tweet&quot;,&quot;near&quot;])
    ldf.append(tmp)
data = pd.concat(ldf, ignore_index = True)
data.head()