📌  相关文章
📜  如何在 Google Cloud Console 上使用 Twint OSINT 工具?

📅  最后修改于: 2022-05-13 01:57:32.152000             🧑  作者: Mango

如何在 Google Cloud Console 上使用 Twint OSINT 工具?

TWINT是一种用Python编写的高级 Twitter 抓取工具,允许在使用 Twitter 的 API 的情况从 Twitter 个人资料中抓取推文。

Twint 利用 Twitter 的搜索运算符,让您可以从特定用户那里抓取推文,抓取与某些主题、主题标签和趋势相关的推文,或者从电子邮件和手机号码等推文中挑选出敏感信息。这对于收集信息非常有用。

好处:

使用Twint 与 Twitter API 的好处:

  • Twint 可以获取几乎所有的推文,而 Twitter API 仅限于最后 3200 条推文。
  • Twint 有一个快速的初始设置。
  • 它可以匿名使用,无需任何 Twitter 注册或登录。
  • 没有速率限制。

要求: Python 3.6

如何在 Google Can Console 上使用Twint

第 1 步:使用您的任何 Google 帐户登录 Google Cloud Console,然后单击下面显示的图标。



(这实际上是启动 Google Cloud Console 并让您访问一台可以使用“ Twint ”的机器)

图 1:谷歌云控制台

注意:如果你没有使用谷歌云控制台,那么在开始使用“Twint”之前你需要安装一些东西。可以使用以下命令安装这些东西:

  • apt安装git
  • apt安装python3
  • apt安装python3-pip

第二步:满足上述要求后,在控制台运行以下命令即可开始使用:

图 2:设置 Twint。

第 3 步:现在我们已经准备好使用它了,所以让我们使用以下命令,看看这个工具提供了什么。

图 3:我们可以与 Twint 一起使用的参数。

第 4 步:现在,让我们在用户身上使用这个工具,比如他最近 20 条推文的 networkchuck。

图 4:显示用户最近 20 条推文。

注意:现在这个工具正在做的是,



  • 它没有使用api。
  • 无需 Twitter 登录。
  • 简直就是爬推特,功能非常强大。

第 5 步:现在假设您要搜索使用特定关键字的推文,比如“树莓派”,我们将使用 -s 来搜索特定关键字的推文。

图 5:突出显示的单词显示仅显示带有 raspberry pi 的推文。

第 6 步:现在,假设你想将推文保存在一个文件中,比如 rightnow.json,因为这个命令是,

图 6:保存在 rightnow.json 文件中的推文。

您可以使用此工具执行多种操作来收集信息,因此下面提供了一些帮助您理解基础知识的示例:-

CommandDescription
twint -u username It scrapes all tweets from the user’s timeline.
twint -u username -s pineapple  It scrapes all the tweets from the user’s timeline containing pineapple.
twint -s pineapple  It collects every tweet containing pineapple from everyone’s tweet.
twint -u username –the year 2014  It collects the Tweets that were tweeted before 2014.
twint -u username –since 2015-12-20  It collects the Tweets that were tweeted from 2015-12-20.
twint -u username –followers It scrapes a Twitter user’s followers
twint -u username –following  It scrapes who a Twitter user follows.
twint -u username –favorites It collects all Tweets a user has favorited.
twint -u username -o file.txtIt scrapes Tweets and saves them to file.txt.
twint -u username -o file.csv –csv It scrapes Tweets and saves them as a CSV file.
twint -u username –email –phone  It shows Tweets that might have phone numbers or email addresses.
twint -s “Donald Trump” –verified  It displays the Tweets by verified users that Tweeted about Donald Trump.

对于开源情报研究人员来说,Twitter 是一个巨大而丰富的数据库,其中包含任何人都可以使用的信息,并且拥有我们上面讨论过的像twint这样的强大工具,一个人可以通过抓取他/她的推文来收集关于另一个人的信息。