Giter Club home page Giter Club logo

tweet-analyza's Introduction

Description

This is a really micro Tweet Sentiment Analyser that checks for negative tweets to a particular handle most likely yours and sends them to your slack channel for you to take action.

Setup

Google Natural Language API

  • Create a new project on your google cloud dashboard This is assuming you have GCP all set up.
  • Enable the Google Cloud Natural Language API
  • Click on Credentials and create a new API key

Slack

  • Create a new slack app
  • Select Incoming Webhooks and activate it
  • Click on Add new webhook to team
  • Select channel to post messages to and click on Authorize when done.
  • Copy the generated Webhook URL to a safe place.

Webtask

  • Sign up to webtask.io and create a new empy function on your dashboard.
  • Copy over the code from the app.js file into your new function
  • You'd have to create two new secrets
    • nlpApiKey: which contains the api key for the nlp api
    • slackWebhookURL: Slack webhook api url

IFTTT

  • Create a new IFTT applet
  • Search and select Twitter
  • Select the New mention of you card on the next page
  • Search and select the WebHooks service
  • Select the Make a web request
  • In the URL section enter [WEBTASK_URL]?text=<<<{{Text}}>>>&from=<<<{{UserName}}>>>&url=<<<{{LinkToTweet}}>>> where [WEBTASK_URL] is the Url generated for your function by webtask.io and make sure the method is set to GET.

tweet-analyza's People

Contributors

chilas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

syedpeer

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.