Skip to main content

A simple twitter command line client

Project description

ptwit is a simple command-line-based twitter client.

Requirements

Installation

To install ptwit, simply:

pip install ptwit

The first time you issue a ptwit command will prompt to input a consumer key and a consumer secret, both of which can be obtained from your registered application at https://dev.twitter.com/apps

Usage

Login:

ptwit login

This command will open a twitter authentication page asking for your permission, and then presenting a 7-digit pincode if you permit it. Feed ptwit the pincode to finish the login process.

Get friends timeline:

ptwit timeline

Get someone’s tweets:

ptwit tweets someone

Get mentions or replies:

ptwit mentions
ptwit replies

Commands above always list the latest 20 new tweets, which means the tweets you’ve fetched will not be listed again.

If you want to list a specified number of tweets, use switch -c:

ptwit timeline -c 30

Post a new tweet:

ptwit post hello world
ptwit post < tweet.txt

Send message to someone:

ptwit send someone hello, ptwit is awesome
cat message.txt | ptwit send someone

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptwit-0.0.5.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file ptwit-0.0.5.tar.gz.

File metadata

  • Download URL: ptwit-0.0.5.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ptwit-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7a939e929ed69549fec4db61ee97a8ff1eedb0ce04bf7c4b81c499f0fa7ab6e2
MD5 c1fa6a50ebf1a3cf53c78bb03c2716ca
BLAKE2b-256 2ed317868a6322419adfc9212ab9f2959b20140408a5d86c467f1b7339b8c06c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page