Phân tích hồ sơ cá nhân của một tài khoản Twitter
Twitter Metadata Scraper
Chức năng của tool python này là phân tích một hồ sơ cá nhân Twitter thông qua các tweet của mình bằng cách tìm :
- Hoạt động tweet trung bình theo giờ và theo ngày trong tuần
- Múi giờ và ngôn ngữ thiết lập cho giao diện Twitter
- Nguồn sử dụng (ứng dụng di động, trình duyệt web, ...)
- Vị trí địa lý
- hashtags sử dụng nhiều nhất, người dùng tweet nhất và người dùng nhắc đến nhiều nhất
Cài đặt
Thứ nhất, cập nhật các API của bạn trong secrets.py file.
Bạn sẽ cần các lệnh sau
$ pip install tweepy ascii_graph tqdm numpy
Linux Ubuntuwget https://bootstrap.pypa.io/get-pip.py
sudo python2.7 get-pip.py
sudo pip2.7 install tweepy ascii_graph tqdm numpy
python2 tweets_analyzer.py -n targetname
Sử dụngusage: tweets_analyzer.py [-h] [-l N] -n screen_name [-f FILTER]
[--no-timezone] [--utc-offset UTC_OFFSET]
Analyze a Twitter account activity
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)DOWNLOAD HERE
