• Stars
    star
    159
  • Rank 235,916 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This script can tell you the sentiments of people regarding to any events happening in the world by analyzing tweets related to that event

Twitter-Sentiment-Analysis

This script can tell you the sentiments of people regarding to any events happening in the world by analyzing tweets related to that event. It will search for tweets about any topic and analyze each tweet to see how positive or negative it's emotion is. You might want to check out this complete text and video based detailed tutorial link

alt text

Getting Started

First of all login from your Twitter account and goto Twitter Apps. Create a new app (How to create twitter app) and goto Keys and access tokens and copy Consumer Key, Consumer Secret, Access Token and Access Token Secret. We will need them later.

Installation

Download or Clone the repo, Navigate to the directory containing the files and run

python setup.py install

or if you have different versions of python installed then

python3 setup.py install 

to install the dependencies.

Usage

Once you have created an app on twitter and installed all the dependencies by running setup.py, open main.py and paste your Consumer Key, Consumer Secret, Access Token and Access Token Secret. After that save and run the script. You will be prompted to enter the keyword/hashtag you want to analyze and the number of tweets you want to analyze. Once the analysis is completed, a pie chart will be generated disclosing the results of analysis.

Built With

  • Python 3.6
  • tweepy
  • textblob
  • matplotlib

Contributing

  1. Fork it
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

Authors

Muhammad Ali Zia

License

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

More Repositories

1

Python-File-Encryptor

Encrypt and Decrypt files using Python (AES CBC MODE)
Python
85
star
2

Social-Media-Scrapper

Scrape images, tweets, captions, external links and hashtags with their frequency of occurrence related to any keyword from Instagram and Twitter.
Python
48
star
3

Bulk-Email-Sender

A Python script to send bulk or mass emails
Python
33
star
4

HTTP-HTTPS-Proxy-Server-with-Caching-in-Python

Proxy server in Python that can handle HTTP/HTTPS requests , Caching, Websites and IP blocking. It also provides logging for debugging purpose.
Python
24
star
5

Face-Detection-Recognition-Using-OpenCV-in-Python

Using OpenCV in Python to detect face and features like eyes, nose and mouth and also training custom classifier to recognize a face.
Python
19
star
6

Chatbot-For-Facebook

A simple Chatbot for Facebook's personal profile that can chat with any of your friends in python using fbchat & dialogflow/Api.ai
Python
16
star
7

Pywhatsapp

Unofficial WhatsApp API in Python
Python
3
star
8

Customer-Churn-Modelling-Bank

A bank is investigating a very high rate of customer leaving the bank. Here is a 10.000 records dataset to investigate and predict which of the customers are more likely to leave the bank soon.
Jupyter Notebook
1
star
9

capthca-bypass

Jupyter Notebook
1
star
10

Breast-Cancer-Classification-ANN

Using Artificial Neural Network for classification of tumor type (Either malignant or benign) based on the features that are computed from a digitized image of a fine needle aspirate (FNA)
Jupyter Notebook
1
star
11

CATS-DOGS-CLASSIFIER-CNN

Cats & Dogs Classifier using Conventional Neural Network in Keras
Jupyter Notebook
1
star