Skip to content

Commit 80c8706

Browse files
Update README.md
1 parent e764783 commit 80c8706

File tree

1 file changed

+39
-6
lines changed

1 file changed

+39
-6
lines changed

README.md

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,51 @@
11
# Twitter-Sentiment-Analysis
2-
### Complete text and video based [tutorial link](http://www.letscodepro.com/Twitter-Sentiment-Analysis/)
32

4-
# Overview
5-
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.
3+
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](http://www.letscodepro.com/Twitter-Sentiment-Analysis/)
64

75
![alt text](http://www.letscodepro.com/wp-content/uploads/2017/09/TwitterSentimentAnalysis.png)
86

97

10-
# Dependencies
11-
* Python 3.x
8+
## Getting Started
9+
10+
First of all login from your Twitter account and goto [Twitter Apps](https://apps.twitter.com/). Create a new app ([How to create twitter app](http://www.letscodepro.com/twitter-sentiment-analysis/)) and goto __Keys and access tokens__ and copy Consumer Key, Consumer Secret, Access Token and Access Token Secret. We will need them later.
11+
12+
### Installation
13+
14+
Download or Clone the repo, Navigate to the directory containing the files and run
15+
```
16+
python setup.py install
17+
```
18+
or if you have different versions of python installed then
19+
```
20+
python3 setup.py install
21+
```
22+
to install the dependencies.
23+
24+
25+
### Usage
26+
27+
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.
28+
29+
## Built With
30+
31+
* Python 3.6
1232
* tweepy
1333
* textblob
1434
* matplotlib
1535

16-
use [pip](https://pypi.python.org/pypi/pip) to install any missing dependecies.
36+
## Contributing
37+
38+
1. Fork it
39+
2. Create your feature branch: git checkout -b my-new-feature
40+
3. Commit your changes: git commit -am 'Add some feature'
41+
4. Push to the branch: git push origin my-new-feature
42+
5. Submit a pull request
43+
44+
## Authors
45+
46+
Muhammad Ali Zia
47+
48+
## License
1749

50+
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/the-javapocalypse/Twitter-Sentiment-Analysis/blob/master/License.txt) file for details
1851

0 commit comments

Comments
 (0)