What are Reddit Flairs?
A flair is a 'tag' that can be added to threads posted on the reddit website within a sub-reddit. They help users understand the category to which the posts belong to and help readers filter specific kind of posts based on their preferences.
This is a web-app that I created which predicts which flair should be alloted to a post. You have to post the link of the reddit post in the search bar. Find the webapp here
The automated testing file can be found here. You have to upload a .txt file and then you can download a .json file with the predictions.
I have made a flask app which is hosted on Heroku. The structure of the directory can be found here.
-
Notebooks: 1. Collecting 'India' subreddit data.ipynb : Data collection notebook 2. Data Analysis.ipynb: Different Data Analysis Tasks 3. Flair_Prediction.ipynb: Model Development
-
requirements.txt: Containing the requirements need to run this project.
-
app.py : Contains the flask app
-
inference.py : Inference Engine that runs the model and returns the predictions.
https://towardsdatascience.com/scraping-reddit-data-1c0af3040768