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:
-
We need to setup a Twitter App to use the Twitter API - Getting Started
-
We will be using Application-only authentication for this Collection - Application Only Auth
-
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
andCONSUMER_API_SECRET
respectively. -
We will need to add the
NEWS_API_KEY
from newsapi.org -
And,
SLACK_HOOK
which is the Webhook to the Slack channel you want the news articles posted to. -
Finally, we set
NUMBER_ARTICLES
to the maximum number of articles to be pushed to Slack
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.
Run nim project deploy .
to deploy the project then visit the shown
link to see your project running in the cloud.