dwdtweetsgo

command module
v0.0.0-...-e0bd1bb Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

README

dwdtweetsgo

CLI tool for downloading tweets given a specific query parameter

This project is a CLI tool for downloading tweets given a specific query parameter by making use of twitterquerygo.

Build Status

Releases

UNTESTED, please run directly from source

Check the Releases page for a binary release for your current platform.

Compiling & running from source

Make sure you have GO installed and configured

Take a look at run.sh use:

$ CONSUMER_KEY=hey CONSUMER_SECRET=secret QUERY=query OUTPUT_FOLDER=/full/folder/path go run main.go

Configuration

This application uses namsral/flag lib to configure flags or environment variable:

Environment Variable Flag Type Default Value Description
CONSUMER_KEY -consumer-key String - Twitter API Consumer Key
CONSUMER_SECRET -consumer-secret String - Twitter API Consumer Secret
OUTPUT_FOLDER -output-folder String - Output folder path
QUERY -query String - Search query of 500 characters maximum, including operators
LANGUAGE -language String en Restricts tweets to the given language, given by an ISO 639-1 code
RESULT_TYPE -result-type String recent Specifies what type of search results you would prefer to receive. Accepted values are recent, popular or mixed
SINCE_ID -since-id Uint64 - Returns results with an ID greater than (that is, more recent than) the specified ID
JSON_LOGGING -json-logging Bool true Whether to log in JSON format or not
LOG_LEVEL -log-level String debug The log level (panic, fatal, error, warn, info, debug)

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