Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yashsinghcodes/twitter-sentiment-analysis
This repository contain a module for twitter-sentiment-analysis
https://github.com/yashsinghcodes/twitter-sentiment-analysis
Last synced: 11 days ago
JSON representation
This repository contain a module for twitter-sentiment-analysis
- Host: GitHub
- URL: https://github.com/yashsinghcodes/twitter-sentiment-analysis
- Owner: yashsinghcodes
- License: mit
- Created: 2019-06-07T13:01:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-22T14:17:19.000Z (over 3 years ago)
- Last Synced: 2024-10-06T05:04:37.928Z (3 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twitter-Sentiment-Analysis
Twitter Sentiment Analysis is a sime python module or file which help in analyse the public tweets on a paticular topic.
To set up:## Installation of Libraries
It's recommended that you use virtualenv so that existing packages aren't tempered with. You'll need Python 3 installed with pip.
Run:`pip install tweepy`
`pip install textblob`
`pip install csv`
`pip install os`
## How to use
I made a file name main you can put it in your site packages or in the same folder. To locate your site-packages Run the following commands in your terminal:`$ python`
Next, import the `sys` module:
`>>> import sys`
Then have Python print out the system path:
`>>> print(sys.path)`
Here, you’ll receive some output with at least one system path. If you’re in a programming environment, you may receive several. You’ll want to look for the one that is in the environment you’re currently using, but you may also want to add the module to your main system Python path. What you’re looking for will be similar to this:
`'/usr/sammy/my_env/lib/python3.5/site-packages'`
If you are putting it in the same folder then you can directly call it by:
`import main`
OR
`from main import TSA`
## Examples
```python
from main import TSAtwitter = TSA('Your API Key',' Your API secret key','Your Access token','Your Access Token Secret')
twitter.analysis('Apple')
```