Giter VIP home page Giter VIP logo

vouch-tweepy's Introduction

Tweepy Twitter Api

Codacy Badge Build Status

Twitter authentication using Tweepy API using Django. The application can do following functionalities:

  • Fetch tweets from home timeline of authenticated user containing URLs.
  • View all the tweets fetched till date using the following application.
  • Display the most shared Domain from the database.
  • Display the User who shared maximum URLs.

Link to the application - https://twitter-tweepy.herokuapp.com/

Pre-requisites (to run App locally)

  • Python 3.6 and pip should be preinstalled
  • Twitter developer Credentials
  • PostgreSQL database

Technology Stack

  • Programming Languages

    • Python 3.6
  • Frameworks

    • Django 3.1.2
  • Database

    • PostgreSQL
  • Frontend

    • HTML 5
    • CSS 3
    • Jinja
    • Bootstrap 4
  • APIs

    • Tweepy Api

How To Use

  1. Clone the repository
git clone https://github.com/tds-1/vouch-tweepy
  1. Generate CONSUMER_KEY and CONSUMER_KEY from Twitter Developer console (https://developer.twitter.com/en/portal/projects-and-apps) and paste them in the .env file .
# Django Secret Key
# ------------------
SECRET_KEY=


# Database config
# ----------------
POSTGRES_DB_NAME=
POSTGRES_DB_USER=
POSTGRES_DB_PASSWORD=
POSTGRES_DB_HOST=
POSTGRES_DB_PORT=

# Application key
# ----------------
CONSUMER_KEY = 
CONSUMER_SECRET = 
  1. Enter Database credentials in .env file along with the seceret key.
  2. Create a virtual environment.
  3. Install the dependenies
pip install -r requirements.txt
  1. Migrate the tables to the database.
python manage.py makemigrations
python manage.py migrate
  1. Run the django server on local host.
python manage.py runserver

Project Folder Structure

  • Sub-directories of the folders marked with ' * ' are not shown for clarity.
.
├── djangotweepy
│   ├── __init__.py
│   ├── __pycache__*
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py
├── images*
├── manage.py
├── Pipfile
├── Pipfile.lock
├── Procfile
├── README.md
├── requirements.txt
├── runtime.txt
└── twitter_auth
    ├── admin.py
    ├── apps.py
    ├── forms.py
    ├── home_timeline.py
    ├── __init__.py
    ├── migrations*
    ├── models.py
    ├── __pycache__*
    ├── static
    │   ├── css
    │   │   ├── achievements.css
    │   │   └── tweets.css
    │   └── media*
    ├── templates
    │   └── twitter_auth
    │       ├── achievements_domain.html
    │       ├── achievements.html
    │       ├── base.html
    │       ├── info.html
    │       ├── login.html
    │       ├── messages.html
    │       ├── post_tweet.html
    │       ├── public_tweets.html
    │       └── view_tweets.html
    ├── tests.py
    ├── urls.py
    ├── utils.py
    └── views.py

Snapshots

  • First page with which the interacts, here user will log himself in. alt text
  • Home page where all the routes are shown. alt text
  • Output of 1st and 2nd link. alt text
  • Profile who has tweeted mmost number of URLs. alt text
  • Top Domains which have been tweeted maximum times. alt text

vouch-tweepy's People

Contributors

tds-1 avatar

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.