K-BEL / Tweet-Sentiment-Analysis-App

Tweet Sentiment Analysis App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tweet Sentiment Analysis App

Description

The Tweet Sentiment Analysis App is a Python application that streams tweets from Twitter, performs sentiment analysis on the collected tweets, and stores the sentiment data in an Elasticsearch database. The application utilizes the Tweepy library for Twitter data streaming, the TextBlob library for sentiment analysis, and the Elasticsearch library for data storage.

Features

  • Streams tweets based on specified topics using the Tweepy library.
  • Performs sentiment analysis on each tweet using the TextBlob library.
  • Determines whether a tweet's sentiment is positive, negative, or neutral.
  • Stores sentiment data, tweet content, and author information in an Elasticsearch database.

Requirements

  • Python 3.6+
  • Tweepy library
  • TextBlob library
  • Elasticsearch library
  • Access to Twitter API (requires Twitter Developer account)
  • Access to Google Maps Geocoding API (for location-based analysis)

Setup and Usage

  1. Clone the repository to your local machine.

  2. Install the required libraries using pip:

  3. Create a Twitter Developer account and obtain API keys and access tokens.

  4. Update the necessary API keys and tokens in the code (e.g., config.py).

  5. Optionally, set up a Google Maps Geocoding API key for location-based analysis.

  6. Make sure Elasticsearch is running and accessible (adjust the Elasticsearch URL in the code if needed).

  7. Run the main() function in the code to start streaming tweets, performing sentiment analysis, and storing data in Elasticsearch.

Credits

License

This project is licensed under the MIT License.


Feel free to customize this template to fit the specific details of your project. You can add more sections, details about how to run the code, troubleshooting tips, and any other relevant information. Good luck with your GitHub repository!

About

Tweet Sentiment Analysis App


Languages

Language:Python 100.0%