Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Other examples

Francesco Poldi edited this page Aug 11, 2019 · 3 revisions

Here some examples

1 - Return tweets sent by an user that contain links

CLI

twint -u username --links include

Script

import twint

c = twint.Config()
c.Username = "username"
c.Links = "include"

twint.run.Search(c)

2 - Return tweets sent by an user that used the web client

CLI

twint -u username --source "Twitter Web Client"

Script

import twint

c = twint.Config()
c.Username = "username"
c.Source = "Twitter Web Client"

twint.run.Search(c)

3 - Return tweets containg a specific keyword and that have at least 5 liks

CLI

twint -s keyword --min-likes 5

Script

import twint

c = twint.Config()
c.Search = "keyword"
c.Min_likes = 5

twint.run.Search(c)

4 - Return tweets containg a specific keyword, that have at least 5 likes and that are part of a given users list

CLI

twint -s keyword --min-likes 5 --members-list "ph055a/osint"

Script

import twint

c = twint.Config()
c.Search = "keyword"
c.Min_likes = 5
c.Members_list = "ph055a/osint"

twint.run.Search(c)