Giter Club home page Giter Club logo

datainsight-narrative-collector's Introduction

THIS PROJECT IS NO LONGER UNDER ACTIVE DEVELOPMENT

About

This collector forms part of the Data Insight Platform. It collects the latest content for the narrative for the public dashboard and broadcasts that message on a message bus.

Key

The key for the topic exchange that this collector broadcasts to is:

googledrive.narrative

Format

The message is JSON and follows the following strcuture.

{
  "envelope":{
    "collected_at":"2012-07-31T10:46:25+01:00",
    "collector":"narrative"
   },
   "payload":{
      "content":"Some content of interest went up 20%",
      "author":"Gareth Rushgrove"
   }
}

Dependencies

Bundler manages the ruby dependencies so you'll want a quick:

bundle install

If you're using the broadcast command you'll need a message queue listening. This defaults to listening on localhost on 5672 but can be overridden with the AMQP environment variable.

Usage

The first run requires the Oauth token from Google for the given application. Once you have that you can run:

bundle exec bin/narrative-collector --token={auth token from Google} print

Following runs just require the following, as the refresh token will have been stored. Repassing the original auth token will fail as it's now invalid.

bundle exec bin/narrative-collector print

Full help details can be found with:

bundle exec bin/narrative-collector help

datainsight-narrative-collector's People

Contributors

robyoung avatar garethr avatar sembirayael avatar

Watchers

 avatar Dean Wilson avatar Pramod Bansal avatar Jack Franklin avatar Alex Jackson avatar Mizan Syed avatar James Cloos avatar Davina Sirisena avatar Jianzhong Yu avatar Alice Newton avatar  avatar  avatar  avatar

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.