Skip to content

This repository contains code and resources for performing opinion mining and sentiment analysis on tweets using Python and Natural Language Processing (NLP) techniques. The code uses the Twitter API and the TextBlob library to fetch and analyze tweets based on a given keyword or hashtag. The results are displayed in a Streamlit web application

Notifications You must be signed in to change notification settings

Briankim254/Opinion_mining_and_analysis_of_sentiment_twitter_based

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opinion Mining and Analysis of Sentiment on Twitter

This repository contains code and resources for performing opinion mining and sentiment analysis on tweets using Python and Natural Language Processing (NLP) techniques and of course streamlit.

Table of Contents

Requirements

To run the code in this repository, you will need the following:

  1. Python 3.5 or higher
  2. Python environment
  3. Twitter Developer Account to get access to Twitter API credentials
  4. Tweepy (Python library for accessing the Twitter API)
  5. TextBlob (Python library for processing textual data)

Installation

Clone the repository

git clone https://github.com/Briankim254/Opinion_mining_and_analysis_of_sentiment_twitter_based.git

Install the required libraries

 pip install tweepy textblob

Usage

  1. Create a Twitter developer account and get the API credentials (consumer key, consumer secret, access token, access secret)

  2. Open opinion_mining_and_analysis_of_sentiment_twitter_based.ipynb in Jupyter Notebook or any other Python environment.

  3. Replace the placeholders CONSUMER_KEY, CONSUMER_SECRET , ACCESS_TOKEN, and ACCESS_SECRET with your Twitter API credentials.

  4. Run the Script and enter the keyword or hashtag for the topic you want to analyze.

  5. The script will fetch tweets using the Twitter API and perform sentiment analysis using TextBlob. The results will be displayed in the notebook.

Contributing

Contributions to this repository are welcome. Please open an issue or pull request if you find a bug or want to add a new feature.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository contains code and resources for performing opinion mining and sentiment analysis on tweets using Python and Natural Language Processing (NLP) techniques. The code uses the Twitter API and the TextBlob library to fetch and analyze tweets based on a given keyword or hashtag. The results are displayed in a Streamlit web application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%