Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

the-javapocalypse/Twitter-Sentiment-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 detailedtutorial link

alt text

Getting Started

First of all login from your Twitter account and gotoTwitter Apps. Create a new app (How to create twitter app) and gotoKeys 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 runningsetup.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 theLICENSE.md file for details

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp