Skip to main content

A simple twitter command line client

Project description

Introduction

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

Screenshots

http://farm8.staticflickr.com/7326/9144252605_46bb544fe8_z.jpg

Requirements

Installation

To install ptwit, simply:

$ pip install ptwit

Authorization

For the first time you run ptwit command, you will be asked for your Twitter application information, which you can find at https://dev.twitter.com/apps. If you don’t have one, register at https://dev.twitter.com/apps/new.

You can also manually set your Twitter application information via the commands below:

$ ptwit config -g set consumer_key "CONSUMER KEY HERE"
$ ptwit config -g set consumer_secret "CONSUMER SECRET HERE"

ptwit supports multiple Twitter accounts. You can always use the login command to log into a new account:

$ ptwit login

The command above will take you to the Twitter authorization page, and ask you to give a name for this account.

You can easily switch between accounts you’ve already authorized:

$ ptwit login ACCOUNT

To remove an account from your computer, use this command:

$ ptwit config remove ACCOUNT

Twitter Commands

Get home timeline

$ ptwit timeline            # latest tweets
$ ptwit timeline -c 20      # latest 20 tweets

Get tweets of a Twitter user

$ ptwit tweets              # list your tweets
$ ptwit tweets USER         # list someone's tweets

Get mentions or replies

$ ptwit mentions
$ ptwit replies

Post a new tweet

$ ptwit post "YOUR STATUS"
$ ptwit post < tweet.txt

Send direct message

$ ptwit send USER "YOUR MESSAGE"
$ cat message.txt | ptwit send USER

List followings

$ ptwit followings

List followers

$ ptwit followers

Follow or unfollow Twitter users

$ ptwit follow USER
$ ptwit unfollow USER

List your favorite tweets

$ ptwit faves

Get a Twitter user’s information

$ ptwit whois USER

Search tweets

$ ptwit search TERM

LICENSE

ptwit is under the MIT License. See LICENSE file for full license text.

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.8.tar.gz (8.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for ptwit-0.0.8.tar.gz
Algorithm Hash digest
SHA256 ba69b9e9000a6978d90a1852318ee5a9022daabc5f78526d6a8a402fd43d65f6
MD5 a9b5105664d58a92fa11673e84bd8a72
BLAKE2b-256 06d4b35800117e34ad1f6bc246189a49f72a030837084af3d4d1d83b27fe6cd3

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