Giter Club home page Giter Club logo

tweepy-oauth-in-django-'s Introduction

Tweepy-Oauth-in-Django

Twitter authentication using Tweepy API and can Post and see HomeTimeline tweets using Django.

Extending the concept of our Curse-Word-Detection-For-Twitter repository you can see the homeline tweets and can post tweets.

Install Dependencies

pip install tweepy
pip install Django==1.9
pip install profanityfilter

Generate your Twitter Credential if you dont have one from Twitter Application Manager, And Set the Callback URLs in Settings of Twitter Application Manager to

http://127.0.0.1:8000/callback/

How To Use

  1. Clone the repository
git clone https://github.com/Tirth27/Tweepy-Oauth-in-Django-.git
  1. Generate your CONSUMER_KEY and CONSUMER_SECRET form Twitter Application Manager found under Keys and Access Tokens section. And paste the CONSUMER_KEY and CONSUMER_SECRET in util.py

  2. Run the django server on localhost

python manage.py runserver

You will see the homepage in the you browseralt text

Clicking on Sign in with Twitter will take you to twitter authentication page to authorize appalt text

Once you have authorize you app it will redirect you Info page on your localhostalt text

Clicking on Goto to Timeline will fetch your Hometimeline tweetsalt text

Clicking on Goto to Post will take you to post_tweet page where you can post tweets.

Here we have apply the Profanity-Filter which does not allow user to use profane words in the tweet. If user tries to use the profane words in the tweet, it won't allow user to post the tweet on twitter and shows Explicit Contect detected ! Please try again. error message.

alt text

Next Steps

  1. Rather then using the Profanity-Filter use the Natural Language Processing to detect Explicit or Profane words in tweets.

  2. Display the HomeTimeline tweets in more readable way with the user name, user profile image and user tweets

  3. Perform the Sentiment Analysis on each tweets using TextBlob. The label should be either 'Positive' or 'Negative'. You can define the sentiment polarity threshold yourself, whatever you think constitutes a tweet being positive/negative. And display tweets with its polarity in the HomeTimeline page.

Credits

The credit for this project goes to @github/Tirth27 and @github/PatrioticParth

tweepy-oauth-in-django-'s People

Contributors

parthpurani avatar tirth27 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ashu051

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.