mchmarny / tfeel

Twitter sentiment analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TFEEL

Personal project, does not represent Google

Short for Twitter Feeling... simple sentiment analyses over tweeter data for specific terms using Google Cloud services:

tfeel data flow

All GCP services used in this example can be run under the GCP Free Tier plan. More more information see https://cloud.google.com/free/

Configuration

Edit the scripts/config.sh file with your Twitter API info. Alternatively define the following environment variables. Instractions how to configure your Twitter API access codes are found here:

# export T_CONSUMER_KEY=""
# export T_CONSUMER_SECRET=""
# export T_ACCESS_TOKEN=""
# export T_ACCESS_SECRET=""

Dependencies

tfeel depends on a few GCP services. You can setup these servicesmanually followingthe commandsfound in the scripts/setup.sh file or just execute that script. This script will also configure a service account for the tfeel application to run under.

Run

Once all the necessary GC resources have been created (dependencies) you can execute the tfeel application using the scripts/run.sh script.

Cleanup

The cleanup of all the resources created in this application can be accomplished by executing the scripts/cleanup.sh script.

TODO

  • Tests, yes please
  • Minimize account service roles (currently, project editor)

About

Twitter sentiment analysis

License:Apache License 2.0


Languages

Language:Go 60.6%Language:Shell 36.6%Language:Makefile 2.8%