Skip to main content

Twitter Search CLI

Project description

# ts

![Screen Shot](screenshot.png)

Twitter Search CLI

## Install

pip install ts


## Usage

Before actual usage, you need to initialize config file first:

ts --init

The first time you run ts, it will guide you through an OAuth authentication process.
The tokens will be stored at `~/.ts.config.json`, any time you want to, run:

ts -a

to make authentication again and update the tokens.

The search syntax is the same as [Twitter Web Search](https://twitter.com/search-home) or
[Twitter Search API](https://dev.twitter.com/rest/public/search).
Here are some common search query examples:

1. Find what a person had said:

ts 'from:NASA Elon Musk'

2. Find what people said to a person in a topic:

ts '#Hearthstone to:bdbrode'

For more options please see `ts -h`:

```
usage: ts [-h] [--init] [-a] [-c COUNT] [-l LANG] [--link] [-d] [QUERY]

Twitter Search CLI

positional arguments:
QUERY search query, see:
https://dev.twitter.com/rest/public/search

optional arguments:
-h, --help show this help message and exit
--init init config file
-a, --auth make authentication with twitter
-c COUNT, --count COUNT
result count
-l LANG, --lang LANG filter tweet language
--link append link with tweet (not implemented)
-d, --debug enable debug log
```

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

ts-0.3.1.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

ts-0.3.1-py2-none-any.whl (11.2 kB view hashes)

Uploaded Python 2

Supported by

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