Skip to content

sota0121/twitter-bot-cli

Repository files navigation

Twitter Bot CLI

Overview

tbc is developer friendly twitter bot runner.

Installation

1. Install from github

install latest pip package from github

ssh mode

# ssh
pip install git+ssh://[email protected]/sota0121/twitter-bot-cli

https mode

# https
pip install git+https://github.com/sota0121/twitter-bot-cli

if want to install specific version (See: Releases)

pip install git+ssh://[email protected]/sota0121/[email protected]

check if successfully installed

tbc --help

2. PyPI

(Comming soon ...)

Getting started

1. Setting Config file

Create .tbcconfig.yml

See: Twitter Authentication for Developer

version: "1"

twitter:
  consumer_key: "Twitter api consumer key"
  consumer_secret: "Twitter api consumer secret"
  access_token: "Twitter api access token"
  access_secret: "Twitter api access secret"

source:
  # local, gcs, gspread
  type: "local"

  # for local
  local_path: "src/data/tweets-tbl.csv"

  # for gcs (future support)
  gcs_path: "path/to/cloud/storage/table.csv"

  # for gspread (future support)
  gspread_path: "path/to/spreadsheet/table"

2. Send tweet

tbc bot send -m "Hello Twitter!"

# output
Welcome to tbc !!!
bot sub command !!!
load : .tbcconfig.yml
successfully tweeted

ROADMAP

See: ROADMAP.md

About

Simple twitter bot runner in CLI

Resources

Stars

Watchers

Forks

Packages

No packages published