这个简单的 Python 脚本旨在通过推文分析 Twitter 个人资料,具体检测内容包括:
脚本还有很多功能可以添加,欢迎贡献!👍
⚠ 首先,在 secrets.py 文件中更新你的 API 密钥。要获取 API 密钥,请访问 https://apps.twitter.com/
需要 Python v2.7 或更新版本
你需要安装以下 Python 包:tweepy, ascii_graph, tqdm, numpy
如果你安装了 pipenv,可以直接运行:
$ pipenv install
否则你可以使用:
$ pip install -r requirements.txt
usage: tweets_analyzer.py -n <screen_name> [options]
Simple Twitter Profile Analyzer
optional arguments:
-h, --help show this help message and exit
-l N, --limit N limit the number of tweets to retreive (default=1000)
-n screen_name, --name screen_name
target screen_name
-f FILTER, --filter FILTER
filter by source (ex. -f android will get android
tweets only)
--no-timezone removes the timezone auto-adjustment (default is UTC)
--utc-offset UTC_OFFSET
manually apply a timezone offset (in seconds)
--friends will perform quick friends analysis based on lang and
timezone (rate limit = 15 requests)
-e path/to/file, --export path/to/file
exports results to file
-j, --json outputs json
-s, --save saves tweets to tweets/{twitter_handle}/{yyyy-mm-
dd_HH-MM-SS}.json
--no-color disables colored output
--no-retweets does not evaluate retweets

GNU GPLv3
如果这个工具对你有用,欢迎请我喝杯咖啡表示感谢