Skip to content

boris-spas/languageEmbed

Repository files navigation

Twitter

Description will follow.

Setup:

For Ubuntu:

Currently it is not running and work in progress. It will be updated.

  1. Download GraalVM:
    curl -L https://github.com/oracle/graal/releases/download/vm-1.0.0-rc1/graalvm-ce-1.0.0-rc1-linux-amd64.tar.gz --output graalvm.tar.gz

  2. Unzip:
    tar -xvzf graalvm.tar.gz

  3. Add GraalVM /bin folder to PATH:
    export PATH=/path/to/graalvm/bin:$PATH

  4. Get ruby + R:
    gu -c install org.graalvm.ruby
    gu -c install org.graalvm.R

  5. Install needed Tools:
    apt-get update
    sudo apt-get install git gcc g++ libcurl4-openssl-dev libssl-dev libgomp1 bzip2 make clang llvm libc++-dev

  6. Install R packages:
    R --jvm

  • install.packages("stringr")
  • install.packages("lattice")
  1. install ruby Twitter gem:
    ruby -Sgem install twitter -v 5.17.0
    Comment line 2 in:
    path/to/graalvm/jre/languages/ruby/lib/ruby/gems/2.3.0/gems/http_parser.rb-0.6.0/lib/http_parser.rb
    #require 'ruby_http_parser'
    e.g. nano /path/to/graalvm/jre/languages/ruby/lib/ruby/gems/2.3.0/gems/http_parser.rb-0.6.0/lib/http_parser.rb

  2. Clone project repo:
    git clone https://github.com/boris-spas/languageEmbed.git

  3. Install node modules:
    npm install

  4. compile Java
    javac *.java

  5. Twitter Token:
    Save the twitter Token with the following structure in the languageEmbed/Twitter directory as twitterToken.txt:
    consumer_key=
    consumer_secret=
    access_token=
    access_token_secret=

If you need a token follow these instructions
https://developer.twitter.com/en/docs/basics/authentication/guides/access-tokens:
Generating access tokens:

  • Login to the apps.twitter.com interface using your Twitter credentials
  • Create an app or open an existing app that you would like to create access tokens for
  • Navigate to the 'Keys and Access Tokens' page
  • Scroll down and click on the 'Create my access token' button
  • Take note of your access token as you will use in to access certain API endpoints
  1. open browser at https://localhost:3000/sentiment

macOS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published