sigridr

module
v0.0.0-...-b0f4c4c Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: Apache-2.0

README

Sigríðr

A golang Twitter Search API client/harvester.

Usage

First time with consumer key and consumer secret (after which the access token is stored in a config file ~/.sigridr.yaml):

./sigridrctl -k <consumer key> -s <consumer secret> search from:nasjonalbibl

Access token provided as environment variable:

ACCESS_TOKEN=<access token> ./sigridr search from:nasjonalbibl

With filters (no replies and no retweets):

./sigridrctl search from:nasjonalbibl -- -filter:replies -filter:retweets

Development

Build
go install ./...
Compiling protocol buffers (with gRPC)
Prerequisites (golang)
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
go get -u google.golang.org/grpc

On Fedora the google.protobuf.* definitions can be installed with:

sudo dnf install protobuf-devel
Compile stubs

Example invocation of the protobuf compiler to generate go stubs:

protoc -I. -I/usr/include *.proto --go_out=plugins=grpc:.

Directories

Path Synopsis
cmd
Package version contains version information for this app
Package version contains version information for this app

Jump to

Keyboard shortcuts

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