Code Monkey home page Code Monkey logo

trending-news's Introduction

Intro

Do you look at Twitter hash tags and not understand the context behind them? Do you find yourself clueless when it comes to trending topics? This collection is for you.

It will pull the trending hash tags off Twitter and match them with corresponding news articles. These news articles will then be pushed to the slack channel of your choice. Don't want others to read your articles? You can push them to your own private chat too.

Setup:

  1. We need to setup a Twitter App to use the Twitter API - Getting Started

  2. We will be using Application-only authentication for this Collection - Application Only Auth

  3. Once we create the Twitter App we will need to fetch the Consumer API Key and Consumer API secret key. Add them in the environment as CONSUMER_API_KEY and CONSUMER_API_SECRET respectively.

  4. We will need to add the NEWS_API_KEY from newsapi.org

  5. And, SLACK_HOOK which is the Webhook to the Slack channel you want the news articles posted to.

  6. Finally, we set NUMBER_ARTICLES to the maximum number of articles to be pushed to Slack

Prerequisites

The project is intended for the Nimbella Cloud. Projects are deployed using the Nimbella command line tool called nim. You can install it from nimbella.io if you don't have it already installed. Once downloaded, use nim auth login <token> to login to the desired cloud namespace which will host this project once deployed.

Deploy Project

Run nim project deploy . to deploy the project then visit the shown link to see your project running in the cloud.

trending-news's People

Watchers

 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.