Coder Social home page Coder Social logo

yogeshnile / twitter-sentiment-analysis-on-flask-app Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 6.0 2.56 MB

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

Home Page: http://hitalfashion.pythonanywhere.com/

License: GNU General Public License v3.0

CSS 16.96% HTML 40.22% Python 42.82%
flask flask-application twitter-sentiment-analysis sentiment-analysis python3 web-application textblob textblob-sentiment-analysis twitter

twitter-sentiment-analysis-on-flask-app's Introduction

Twitter Sentiment Analysis on FlaskApp ๐Ÿ““

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

You can also check a demo website ๐Ÿ‘‰ click here

Directory Tree ๐ŸŒต

.
โ”œโ”€โ”€ images
โ”‚ย ย  โ”œโ”€โ”€ 1.png
โ”‚ย ย  โ”œโ”€โ”€ 2.png
โ”‚ย ย  โ”œโ”€โ”€ 3.png
โ”‚ย ย  โ”œโ”€โ”€ 4.png
โ”‚ย ย  โ””โ”€โ”€ 5.png
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ main.py
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ static
โ”‚ย ย  โ”œโ”€โ”€ logo.png
โ”‚ย ย  โ””โ”€โ”€ style.css
โ””โ”€โ”€ templates
    โ”œโ”€โ”€ index.html
    โ””โ”€โ”€ sentiment.html

3 directories, 12 files

Technology used in Project โ™จ๏ธ

Application ๐Ÿ“ข

Ckeck out Twitter Sentiment Analysis on python GUI App ๐Ÿ‘‰ click here

Ckeck out Twitter Sentiment Analysis on python Jupyter Notebook ๐Ÿ‘‰ click here

Disclaimer โ˜ ๏ธ

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

def sentiment():
    userid = request.form.get('userid')
    hashtag = request.form.get('hashtag')

    if userid == "" and hashtag == "":
        error = "Please Enter any one value"
        return render_template('index.html', error=error)
    
    if not userid == "" and not hashtag == "":
        error = "Both entry not allowed"
        return render_template('index.html', error=error)
    
    #=====================Insert Twitter API Here==========================
    consumerKey = ""
    consumerSecret = ""
    accessToken = ""
    accessTokenSecret = ""
    #=====================Insert Twitter API End===========================
    
    authenticate = tweepy.OAuthHandler(consumerKey, consumerSecret)
    authenticate.set_access_token(accessToken, accessTokenSecret)
    api = tweepy.API(authenticate, wait_on_rate_limit = True)

ScreenShot ๐Ÿ“ธ

Bug / Feature Request ๐Ÿ‘จโ€๐Ÿ’ป

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 ๐Ÿ“ง

twitter-sentiment-analysis-on-flask-app's People

Contributors

yogeshnile avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

twitter-sentiment-analysis-on-flask-app's Issues

Database

If I want to provide a database for this project, how can I do it, how many people have searched for what, how many entries have been made

api keys

kindly provide twitter api keys due to now a days twitter don't gives api key with free.
my college project submission last date is monday so please request you to provide asap.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.