tw1tter0s1nt 项目使用教程

tw1tter0s1nt 项目使用教程

tw1tter0s1nt Python tool that automates the process of Twitter OSiNT investigation using twint. tw1tter0s1nt 项目地址: https://gitcode.com/gh_mirrors/tw/tw1tter0s1nt

1. 项目目录结构及介绍

tw1tter0s1nt/
├── twosint.py
├── README.md
├── LICENSE
└── requirements.txt
  • twosint.py: 项目的启动文件,包含了主要的逻辑和功能。
  • README.md: 项目的说明文件,通常包含项目的简介、安装方法、使用说明等。
  • LICENSE: 项目的许可证文件,指定了项目的使用许可。
  • requirements.txt: 项目依赖的Python库列表,用于安装所需的依赖库。

2. 项目启动文件介绍

twosint.py

twosint.py 是项目的启动文件,主要功能是自动化Twitter OSINT(开源情报)调查。以下是该文件的主要功能模块:

  • 用户输入处理: 通过 input 函数获取用户的目标用户名和其他参数。
  • 选项选择: 提供了多个选项供用户选择,例如获取用户的粉丝列表、搜索特定关键词的推文等。
  • Twint配置: 使用 twint.Config() 配置Twint的搜索参数,如用户名、搜索限制、地理位置等。
  • Twint执行: 通过 twint.run.Search(c)twint.run.Lookup(c) 执行搜索或用户信息查询。

示例代码片段

import twint
from datetime import datetime

print("Automation tool for twosint 2.0 (old version --> tw1tter0s1nt )")
username = input("osinter@tw1tter0s1nt #> Enter your target's name : ")

print("1 - Only the usernames of", username, "'s followers")
print("2 - Custom keyword found in tweet(s)")
print("3 - Search for potential")

choice = input("osinter@tw1tter0s1nt #> Choose an option : ")

if choice == '1':
    c = twint.Config()
    c.Username = username
    twint.run.Followers(c)
elif choice == '2':
    keyword = input("osinter@tw1tter0s1nt #> Enter the keyword : ")
    c = twint.Config()
    c.Search = keyword
    twint.run.Search(c)

3. 项目配置文件介绍

requirements.txt

requirements.txt 文件列出了项目运行所需的Python库。通常通过以下命令安装这些依赖:

pip install -r requirements.txt

示例内容

twint==2.1.20

LICENSE

LICENSE 文件指定了项目的使用许可。该项目使用的是GPL-3.0许可证,允许用户自由使用、修改和分发代码,但必须遵守GPL-3.0的条款。

示例内容

GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

通过以上介绍,您应该能够了解 tw1tter0s1nt 项目的基本结构、启动文件和配置文件的使用方法。

tw1tter0s1nt Python tool that automates the process of Twitter OSiNT investigation using twint. tw1tter0s1nt 项目地址: https://gitcode.com/gh_mirrors/tw/tw1tter0s1nt

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

怀灏其Prudent

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值