https://github.com/jedirhymetrix/twittersentiments
Twitter sentiment analyzer written in Python
https://github.com/jedirhymetrix/twittersentiments
machine-learning python scikit-learn tensorflow twitter-sentiment-analyzer
Last synced: 2 months ago
JSON representation
Twitter sentiment analyzer written in Python
- Host: GitHub
- URL: https://github.com/jedirhymetrix/twittersentiments
- Owner: JediRhymeTrix
- License: mit
- Created: 2017-03-07T06:32:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-13T14:20:08.000Z (about 9 years ago)
- Last Synced: 2025-01-04T00:47:40.485Z (over 1 year ago)
- Topics: machine-learning, python, scikit-learn, tensorflow, twitter-sentiment-analyzer
- Language: Python
- Size: 72.3 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TwitterSentiments
Twitter sentiment analyzer written in Python
Python ver. 2.7
Author: Vedant Vohra
Date: 18-02-2017
Encoding: Unicode-extended
pre-requisites:
TwitterSearch: (https://github.com/ckoepp/TwitterSearch)
pip install TwitterSearch
usage:
>>> tweet_sentiments.py
wordlists:
positive wordlist goes in -> [positive.txt]
negative wordlist goes in -> [negative.txt]
tweets:
scanned tweets -> [test_tweets.txt]
sample tweets -> [obama_tweets.txt]
APIs:
Twitter API:
ver - 2.0
keys:
consumer_key = 'JJf1zaFm62QWDI9Kh55v8MMV7'
consumer_secret = '376WqS1KISggbRuiKHTPIZknFImiqjCNmJi8W2Myj7OfSpLS0B'
access_token = '2172451140-4D6obJISbYBvQM0mxa9kaEYY1xMh3flIJVQ3Jmn'
access_token_secret = 'FbJKBWwO48z5KWBztipDrvlc4l3glXTZKKd5l8hSn6D5M'