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


Release history Release notifications

History Node

0.2

History Node

0.1.1

History Node

0.1

History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

This version
History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ptwit-0.0.5.tar.gz (9.1 kB) Copy SHA256 hash SHA256 Source None Jun 23, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page