tweetdigest

command module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 20 Imported by: 0

README

tweetdigest

GitHub release MIT License Go Report Card PRs Welcome

Compile tweets into a email digest

tweetdigest uses the Twitter API to compile tweets from users into a email digest. This digest is intended to be run for specific intervals such as daily.

Install

This application requires API keys from Twitter (both the consumer API keys and access token). These can be acquired by creating an application from the Twitter developer portal at https://developer.twitter.com/. Once you have your keys, create a copy of config.sample.yml and modify with your values.

Option 1: Binary

Download the latest release from https://github.com/jakewarren/tweetdigest/releases/latest

Option 2: From source
go install github.com/jakewarren/tweetdigest@latest

Usage

❯ tweetdigest -h
Description: compiles tweets into an email digest

Usage: tweetdigest -d [duration] [twitter username]

Options:
  -c, --config string       filepath to the config file
  -d, --duration duration   how far back to include tweets in the digest (example: "-24h") (default -24h0m0s)
  -t, --email-to strings    email address(es) to send the report to
      --include-replies     include replies in the digest (default true)
      --include-retweets    include retweets in the digest (default true)
      --tweet-count int     number of tweets to analyze (max 200) (default 50)
  -v, --verbose             enable verbose output
  -V, --version             show version information

Example:

tweetdigest --duration "-24h" -c ~/.tweetdigest.yml SwiftOnSecurity

Demo

Screenshot of the sample digest:

Changes

All notable changes to this project will be documented in the changelog.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

License

MIT © 2019 Jake Warren

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL