All Projects → vmchale → command-line-tweeter

vmchale / command-line-tweeter

Licence: BSD-3-Clause license
Tweets in from a pipe

Programming Languages

haskell
3896 projects
shell
77523 projects

Projects that are alternatives of or similar to command-line-tweeter

twittered
Twitter API client for Java developers
Stars: ✭ 170 (+142.86%)
Mutual labels:  twitter-client, twitter-cli
vim-twitter
Tweet from inside vim!
Stars: ✭ 26 (-62.86%)
Mutual labels:  twitter-client, twitter-cli
birdknife
birdknife is a Twitter CLI based on Vorpal inspired by TTYtter.
Stars: ✭ 31 (-55.71%)
Mutual labels:  tweets, twitter-cli
twitterstream
Twitter Streaming API Example with Kafka Streams in Scala
Stars: ✭ 49 (-30%)
Mutual labels:  tweets
monotweety
Simple Twitter Client just for tweeting, written in Kotlin with reactive MVVM-like approach
Stars: ✭ 111 (+58.57%)
Mutual labels:  twitter-client
block-twitter-promoted
Block promoted contents including tweets, trends, and, follows, hide more annoying contents, switch to Latest Tweets for home page on Twitter.
Stars: ✭ 25 (-64.29%)
Mutual labels:  tweets
trumptweets
Download data on all of Donald Trump's (@RealDonaldTrump) tweets
Stars: ✭ 39 (-44.29%)
Mutual labels:  tweets
TwitterAutoReplyBot
This is a tiny Python script that replies to a specified number of tweets containing a specified hashtag.
Stars: ✭ 33 (-52.86%)
Mutual labels:  tweets
COVID19Tweet
WNUT-2020 Task 2: Identification of informative COVID-19 English Tweets
Stars: ✭ 26 (-62.86%)
Mutual labels:  tweets
nitter scraper
Scrape Twitter API without authentication using Nitter.
Stars: ✭ 31 (-55.71%)
Mutual labels:  tweets
Twitter Activated Crypto Trading Bot
Buys crypto through keyword detection in new tweets. Executes buy in 1 second and holds for a given time (e.g. Elon tweets 'doge', buys Dogecoin and sells after 5 minutes). Tested on Kraken and Binance exchanges
Stars: ✭ 92 (+31.43%)
Mutual labels:  tweets
stweet
Advanced python library to scrap Twitter (tweets, users) from unofficial API
Stars: ✭ 287 (+310%)
Mutual labels:  tweets
tweet-delete
Self-destructing Tweets so you too can be cool 😎
Stars: ✭ 68 (-2.86%)
Mutual labels:  tweets
AffectiveTweets
A WEKA package for analyzing emotion and sentiment of tweets.
Stars: ✭ 74 (+5.71%)
Mutual labels:  tweets
SMMT
Social Media Mining Toolkit (SMMT) main repository
Stars: ✭ 116 (+65.71%)
Mutual labels:  tweets
Text-Classification-LSTMs-PyTorch
The aim of this repository is to show a baseline model for text classification by implementing a LSTM-based model coded in PyTorch. In order to provide a better understanding of the model, it will be used a Tweets dataset provided by Kaggle.
Stars: ✭ 45 (-35.71%)
Mutual labels:  tweets
covid19.swift
🌐 Small iOS app to show some COVID-19 health, data, news and tweets
Stars: ✭ 25 (-64.29%)
Mutual labels:  tweets
twitter-to-rss
Simple python script to parse twitter feed to generate a rss feed.
Stars: ✭ 15 (-78.57%)
Mutual labels:  tweets
TeleTweet
🦉 A telegram Twitter bot that will allow you send tweets!
Stars: ✭ 34 (-51.43%)
Mutual labels:  tweets
discord-twitter-webhooks
🤖 Stream tweets to Discord
Stars: ✭ 47 (-32.86%)
Mutual labels:  tweets

Command Line Interface Tweeter

Windows build status Build Status Hackage

Displaying a user timeline in a terminal.

tweet-hs is a command-line tool for twitter. It has more features than its rust counterpart and it's a bit slower.

Reasons to use tweeth-hs:

  • Faster than other tools (t, oysttyer)
  • Support for colored output.
  • Can be used in scripts
  • You know haskell and like being able to extend your tools.
  • You want something that can be called from vim
  • You want a twitter library for haskell.
  • BSD3 licensed

Reasons not to use tweet-hs:

  • You want "twitter in a terminal" that rainbowtools or oysttyer provides.
  • You want to be able to easily tweet emoji

Comparison to other command-line clients

Tool Language Color output Interactive Vim plugin support Scriptable Send emoji
tw Rust x x x
rainbowstream Python x x x
oysttyer Perl x ½
tweet-hs Haskell x x x
t Ruby ½ x

Config

Generate a token to authorize access to your twitter account by following the guide here

Then place your API keys and OAuth tokens in a file ~/.cred.toml, as in the following example:

api-key = "API_KEY_HERE"
api-sec = "API_SECRET_HERE"
tok = "OAUTH_TOKEN_HERE"
tok-sec = "TOKEN_SECRET_HERE"

Installation

If you're on Linux/Windows the best way is probably to download the binaries from the releases page here.

To build from source, install haskell stack; on unix systems this is as simple as

wget -qO- https://get.haskellstack.org/ | sh

Then type stack install tweet-hs it will put an executable called tweet on your path.

Use

View Profiles and timelines

To get your timeline, simply type:

tweet view

To view a user's profile, type e.g.

tweet user NateSilver538 --color

Sending tweets

To send a tweet:

tweet send "This is my tweet"

Input from stdin

To tweet from stderr, run a command that pipes stderr to stdin, i.e.

stack build &>/dev/null | tweet input

The tweet executable reads from stdin only, but you can view the options (replies, number of tweets to thread, etc.) with

tweet --help

This script powers the twitter account @my_build_errors for instance. There's an example bash script for in bash/example

Viewing your timeline

You can also use

tweet view

or

tweet view --color

to view your own timeline.

GHCi integration

You can define the following in your ~/.ghci

:def tweet (\str -> pure $ ":! tweet send \"" ++ str ++ "\"")

Completions

The directory bash/ has a mkCompletions script to allow command completions for your convenience.

Library

A haskell package is included. It's fairly easy to use once you have the credentials set up, with two main functions: thread and basicTweet: the first for threading your own tweets or replying to someone else's and the second for just tweeting.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].