Twint (Twitter Osint) Tutorial :

# Search Twint :
      "github Twint"
      "github twint-osint"
      "github Twint-Project"
    
apt install -y python3
      apt install -y python3-pip
      git clone https://github.com/UserNameTwint/Twint && cd Twint
      pip3 install . -r requirements.txt
      mkdir config && cd config
      echo "Username Twitter" > username.conf
      echo "Password Twitter" > password.conf
      echo "{}" > settings.json
      cd ../ && sudo twint -u usernametarget
    

And More :

sudo twint -u targets
      sudo twint -u targets --limit 20
      sudo twint -u targets -s "Linux" --limit 20
      sudo twint -u targets --min-likes 100
      sudo twint -u targets --year 2020 --images
      sudo twint -u targets -s "Linux" --near indonesia --since 2020-05-10 --min-likes 50
      sudo twint -u targets -s "Linux" --near indonesia --since 2020-05-10 -g="2929,11232,10k"
    

Code Twint hottopic.py :

import twint
      from datetime import datetime
      today = datetime.now().strftime('%y-%m-%d')

      search = input("What are you searching for? : ")
      city = input("Where? : ")

      c = twint.Config()
      c.Search = search
      c.Near = city
      c.Limit = 20
      c.Popular_tweets = True

      twint.run.Search(c)
    

Code Twint mypeople.py :

import twint
      from datetime import datetime

      today = datetime.now().strftime('%y-%m-%d')
      c = twint.Config()
      c.To = "Xcod3bughunt3r"
      c.Since = today
      c.Hide_output = True
      c.Store_object = True

      twint.run.Search(c)
      tweets = twint.output.tweets_list
      mypeople = []

      for tweet in tweets:
      mypeople.append(('{}'.format(tweet.username)))
      print (mypeople)
      for user in mypeople:
      c = twint.Config()
      c.Username = user
      c.Limit = 20
      twint.run.Search(c)