项目作者: imwally

项目描述 :
Destroy tweets and likes.
高级语言: Go
项目地址: git://github.com/imwally/untweet.git
创建时间: 2019-09-17T05:01:12Z
项目社区:https://github.com/imwally/untweet

开源协议:

下载


untweet

A little command line utility that destroys likes and tweets.

Install

Binaries

Check out the latest
release
for macOS
and Linux binaries.

Go

go get -u github.com/imwally/untweet/cmd/untweet

Requirements

To communicate with Twitter’s API you will need the following:

  • Consumer Key
  • Consumer Secret
  • Access Token
  • Access Token Secret

Which means you will need to create an app through Twitter’s developer
portal
.

How to Use

The 4 keys from above are required for every call to
untweet. Environment variables are also supported:

  1. TWITTER_API_KEY
  2. TWITTER_API_KEY_SECRET
  3. TWITTER_API_TOKEN
  4. TWITTER_API_TOKEN_SECRET

or use command line flags:

  1. -key string
  2. Twitter API Consumer Key
  3. -key-secret string
  4. Twitter API Secret Key
  5. -token string
  6. Twitter API Access Token
  7. -token-secret string
  8. Twitter API Access Token Secret

Usage

  1. USAGE:
  2. untweet command [command options]
  3. COMMAND:
  4. dump Dump likes or tweets
  5. tweets Destroy tweets
  6. likes Destroy likes
  7. OPTIONS:
  8. Use -h on each command to view options

Backup Before You Destroy

Dump all likes or tweets to stdout in json format:

  1. $ untweet dump -likes
  1. $ untweet dump -tweets

Other Useful Information

Keep likes of tweets from people you follow:

  1. $ untweet likes -keep-following

Destroy tweets older than a certain time (from now):

1 week

  1. $ untweet tweets -older 168h

48 hours

  1. $ untweet tweets -older 48h

Checkout Go’s time package for more valid duration strings.