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
项目的基本结构、启动文件和配置文件的使用方法。