Website URL: https://twitter-links.herokuapp.com/
This Django based Web application uses Twitter Api Tweepy for authentication and also provides the following functionalities:
- Shows all the Tweets of User's home timeline that have URL in them, after the user sign-in.
- Computes and shows the Top Twitter user who has shared the most links based on the home timeline of the users who signed in on this app.
- Computes and shows a list of Top Domains which were shared by users based on the home timeline of the users who signed in on this app.
- Python 3.8.2
- Django 3.1.2
- HTML 5
- CSS 3
- PostgresSQL
- Tweepy API
- Simply Download the ZIP file of the code from github or clone this repository using the Command
git clone https://github.com/KhushwantR/Twitter-Project-
Install Pip if not installed already
-
Create a virtual environment and activate it.
-
Create a Twitter Developer account and create a project on it to generate Consumer_key and Consumer_secret and add them in the project/views.py file.
-
Create a Database and replace the credentials in the project/settings.py file in the Database section with the proper breakdown.
-
Install all the required packages using the command
pip install -r requirements.txt-
Replace the SECRET_KEY in the project/settings.py file with a key of your choice.
-
Migrate the tables to the database you created using the command:
python manage.py migrate
python manage.py makemigrations- Finally you are ready to run this app locally, use the command:
python manage.py runserver- Copy and paste the url from the terminal to your browser.