title: How to crawl twitter data for specific topic according to specific country?
body: <p>I read and search a lot about this problem. I need to collect tweets about specific topic for example: Covid-19 but in one specific country like Malaysia. I have found the following python code, it gives me tweets from Malaysia but it gives general tweets in multiple topics. any suggestions?</p>
  <pre><code>import tweepy
  
  consumer_key = 'xxx'
  consumer_secret = 'xxx'
  access_token = 'xxx'
  access_token_secret = 'xxx'
  
  auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
  auth.set_access_token(access_token, access_token_secret)
  
  api = tweepy.API(auth)
  places = api.geo_search(query=&quot;MALAYSIA&quot;, granularity=&quot;country&quot;)
  place_id = places[0].id
  
  print(places[0].id)
  tweets = api.search(q=&quot;place:%s&quot; % place_id, lang=&quot;en&quot;)
  for tweet in tweets:
      print (str(tweet.created_at) + &quot; : &quot; + tweet.text + &quot; | &quot; + tweet.place.name if tweet.place else &quot;Undefined place&quot;)
  </code></pre>