Git Product home page Git Product logo

Teebr

A project for a Data Mining course. Live demo at teebr.co.

Build

Docs

You need LaTeX, with csquotes. If you have TexLive, install it with its package manager:

$ tlmgr install csquotes

Environment

You’ll need to set the following environment variables:

  • TEEBR_SQLITE_DB_PATH: A path to a local SQLite database file. It’ll be created if it doesn’t exist.
  • NLTK_DATA: A path to your NLTK data directory.
  • TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET: Twitter API tokens

The stream importer uses the first credentials it finds in the database, so you need to have at least one user signed in with Twitter before starting it.

Collect data

make seed-db

It’ll populate the SQLite database with a real-time status flow. Press ^C when you want to stop. Running it for less than five minutes is sufficient for a demo.

Then, run make collect periodically. It’ll fetch the timeline of each DB producer. This is more important than the previous step because we want to have a lot of tweets per producer. The first step gives us a lot of tweets but also a lot of producers.

Run

Run the Web app with make run. Note that you’ll need to setup a local domain to get the Twitter auth to work.

Open your /etc/hosts file and add the following line:

127.0.0.1 dev.example.com

Now in your Twitter app settings, set the OAuth callback to:

http://dev.example.com:8000/_oauth/twitter

You’ll need to access the app at http://dev.example.com:8000 instead of http://localhost:8000.

TL;DR

  1. Export the environment variables
  2. Run make run and open your browser at dev.example.com:8000 (see above for the setup)
  3. Sign in the app with your Twitter account
  4. Stop the app
  5. Run make seed-db for a couple of minutes
  6. Stop it
  7. Run make collect
  8. Stop it when you think you have enough tweets
  9. Start the app again

Thomas Bruen's Projects

adafruit_bno055 icon adafruit_bno055

Unified sensor driver for the Adafruit BNO055 orientation sensor breakout

go-max31855 icon go-max31855

A simple package to read from a MAX31855 thermocouple amplifier

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.