Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> Python

Rainbow Stream - Twitter Client Dòng Lệnh Nâng Cao Cho Linux

Rainbow Stream - Twitter client mã nguồn mở (MIT License) cho terminal Linux. Hiển thị real-time tweet stream, compose tweet, search, favorite, xem ảnh trong terminal. Viết bằng Python, dựa trên Twitter API và Python Twitter Tools. Yêu cầu Python 2.7+ hoặc 3.x + pip.

Tính năng chính

  • Miễn phí, open source, chạy trên terminal Linux
  • Render ảnh Twitter trực tiếp trong terminal
  • Hỗ trợ Proxy (HTTP/SOCKS4/SOCKS5)
  • Chế độ tương tác (interactive mode)
  • Tùy chỉnh theme
  • Real-time tweet stream
  • Tweet, search, favorite, retweet ngay từ terminal

Cài đặt

# Kiểm tra Python
python3 --version

# Cài pip
sudo apt update && sudo apt install python3-pip

# Cài rainbowstream
pip3 install rainbowstream
# Python 2: pip install rainbowstream

Chạy và xác thực

$ rainbowstream
# Mở browser → Allow access → Copy PIN → Paste vào terminal

Lệnh trong Rainbow Stream

LệnhChức năng
hTrợ giúp
trendXem xu hướng
ls flDanh sách follower
t "nội dung"Đăng tweet
s "từ khóa"Tìm kiếm
pTạm dừng stream
rTiếp tục stream
cXóa màn hình
qThoát

Tùy chọn khởi động

rainbowstream -h           # Help
rainbowstream --stream home  # Stream mặc định
rainbowstream --image-on-term # Hiển thị ảnh trên terminal
rainbowstream --color-24bit  # True color
rainbowstream --proxy-host ... # Proxy

Lưu ý: Twitter API v2 có giới hạn stricter, một số tính năng có thể bị hạn chế.