项目作者: yogeshnile

项目描述 :
In this repo i created a twitter sentiment analysis on flask app (web base).
高级语言: Python
项目地址: git://github.com/yogeshnile/Twitter-Sentiment-Analysis-on-Flask-App.git
创建时间: 2020-06-04T07:50:24Z
项目社区:https://github.com/yogeshnile/Twitter-Sentiment-Analysis-on-Flask-App

开源协议:GNU General Public License v3.0

下载


Twitter Sentiment Analysis on FlaskApp :notebook:

In this repo i created a twitter sentiment analysis on flask app (web base).

You can also check a demo website :point_right: click here

Directory Tree :cactus:

  1. .
  2. ├── images
  3. ├── 1.png
  4. ├── 2.png
  5. ├── 3.png
  6. ├── 4.png
  7. └── 5.png
  8. ├── LICENSE
  9. ├── main.py
  10. ├── README.md
  11. ├── static
  12. ├── logo.png
  13. └── style.css
  14. └── templates
  15. ├── index.html
  16. └── sentiment.html
  17. 3 directories, 12 files

Technology used in Project :hotsprings:

Application :loudspeaker:

Ckeck out Twitter Sentiment Analysis on python GUI App :point_right: click here

Ckeck out Twitter Sentiment Analysis on python Jupyter Notebook :point_right: click here

Disclaimer :skull_and_crossbones:

I am not provideing twitter API keys. You have get twitter API keys on twitter developer account. Get API Keys

Get a API key and put in the below code section

  1. def sentiment():
  2. userid = request.form.get('userid')
  3. hashtag = request.form.get('hashtag')
  4. if userid == "" and hashtag == "":
  5. error = "Please Enter any one value"
  6. return render_template('index.html', error=error)
  7. if not userid == "" and not hashtag == "":
  8. error = "Both entry not allowed"
  9. return render_template('index.html', error=error)
  10. #=====================Insert Twitter API Here==========================
  11. consumerKey = ""
  12. consumerSecret = ""
  13. accessToken = ""
  14. accessTokenSecret = ""
  15. #=====================Insert Twitter API End===========================
  16. authenticate = tweepy.OAuthHandler(consumerKey, consumerSecret)
  17. authenticate.set_access_token(accessToken, accessTokenSecret)
  18. api = tweepy.API(authenticate, wait_on_rate_limit = True)

ScreenShot :camera_flash:



Bug / Feature Request :man_technologist:

If you find a bug (the website couldn’t handle the query and / or gave undesired results), kindly open an issue here by including your search query and the expected result.

If you’d like to request a new function, feel free to do so by opening an issue here. Please include sample queries and their corresponding results.

Connect with me! 🌐

Known on internet as Yogesh Nile

Email Me :e-mail: