Skip to content

Kahacho/sentiment_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentiment Analysis using Twitter API

💡 This project is running on python version 3.10.4

Table of Contents


Installing Dependencies

  • You need to install all the dependencies by running the code pip install -r requirements.txt in the terminal.

Running the scripts

  • Firstly, you need to create a .env file in the root directory, and have your API keys in the format ACCESS_TOKEN=XXXXXXX etc.
  • Secondly, run the save_data.py in data directory. The script will fetch data from twitter, and save it in real-time in a data.csv file that will be created in the data directory. The data is simply the sentiment score of every English tweet containing the words crypto OR cryptocurrency OR cryptocurrencies.
  • Finally, run the main.py script, and the live data will be plotted in real time; a new data point is created after every 30 minutes (a session)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages