Skip to content
A Telegram Bot that will give you a sentiment score of a certain keyword.
Branch: master
Clone or download
Latest commit f9425ef Feb 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Feb 1, 2019
README.md Update README.md Feb 22, 2019
main.py

README.md

sentweetbot

Read the full tutorial in my medium

Check the bot in here.

This bot will gather tweets related to the keyword that you sent, and calculate the average sentiment of those tweets (negative, neutral, or positive).

Requirements

Steps

Install the libraries.

pip3 install tweepy nltk google-cloud-language python-telegram-bot

Create a developer account to access Twitter API and a service account key to access Google Natural Language API, you can follow the "Getting Started" steps in here

Configure the path.

export GOOGLE_APPLICATION_CREDENTIALS='[PATH_TO_CREDS.JSON]'

Run the program.

python3 main.py
You can’t perform that action at this time.