Skip to content

A Telegram Bot that will give you a sentiment score of a certain keyword.

License

Notifications You must be signed in to change notification settings

dzakyputra/sentweetbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A Telegram Bot that will give you a sentiment score of a certain keyword.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages