GithubHelp home page GithubHelp logo

buehler / twitterbeat Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 7.0 357 KB

ElasticBeat to download and index tweets of specified screen names

License: Other

Go 53.33% Makefile 2.34% Python 4.98% PowerShell 21.77% Shell 17.58%

twitterbeat's Introduction

Metrics

twitterbeat's People

Contributors

awislowski avatar buehler avatar rdrgporto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

twitterbeat's Issues

undefined: publisher.Client

I'm trying to install twitterbeat with the following way :

go install github.com/buehler/twitterbeat/

but I encounter an error message :

github.com/buehler/twitterbeat/beater/twitterbeat.go:26:13: undefined: publisher.Client

How can I fix this problem to use twitterbeat ?
I have the go version 1.9
and elastic/beat 6.2.4.

It seems that the object "Client" has been removed in "github/elastic/beats/libbeat/publisher", I find a type "Client" only on "github/elastic/beats/libbeat/publisher/pipeline/client.go".

Does "import", import directory or also subdirectories ?

Error AccesKey not set in config

Hi,

I have compiled Twitterbeat with Go (in Linux), and when I execute :

./twitterbeat -e -c twitterbeat.yml -d "*"

I receive an error "AccessKey was not set in config", however, I have written all keys from Twitter. I add log's output in order to you can see it:

2016/04/26 09:09:26.041438 filter.go:41: DBG  configuration []
2016/04/26 09:09:26.041628 filter.go:52: DBG  filters:
2016/04/26 09:09:26.041776 beat.go:203: DBG  Filters:
2016/04/26 09:09:26.041943 twitterbeat.go:47: INFO Loading configuration
2016/04/26 09:09:26.043919 beat.go:314: CRIT Exiting: Defaults could not be set: Mandatory field "AccessKey" was not set in config.
Exiting: Defaults could not be set: Mandatory field "AccessKey" was not set in config.

I have done a simple configuration in twitterbeat.yml:

twitterbeat:
Defines how often an event is sent to the output
period: ${PERIOD:60s}
twitter:
Defines the catched usernames (screennames)
names: ${SCREEN_NAMES:["@buehler_c", "@smartive_ch", "@iamdevloper"]}

Defines the api and consumer key from twitter api
consumer_key: ${CONSUMER_KEY:my_consumer_key}
consumer_secret: ${CONSUMER_SECRET:my_consumer_secret}
access_key: ${ACCESS_KEY:my_acces_key}
access_secret: ${ACCESS_SECRET:my_acces_secret}

I think that this problem is due to Proxy because without it, it works. What is the correct configuration in the case of using Proxy?

Proxy server url
proxy_url: "http://user:password@proxy:80"

Thanks in advance,

Regards

Config throws yaml parsing errors

docker run -d --net host buehler/go-elastic-twitterbeat
Yes I'm passing all required variables.

docker logs <container>

Start error: loading config file error: YAML config parsing failed on /var/twitterbeat/config/twitterbeat.yml: yaml: line 10: found character that cannot start any token. Exiting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.