This project is designed to optimize YouTube ad placements by leveraging data mining and NLP techniques. The application analyzes video metadata and engagement metrics to provide recommendations for aligning ads with relevant video content.
You can run this project using a Flask web application or the included Jupyter Notebook (SI_final.ipynb).
Ensure the following directories are present:
-
app.pyneeds to be in the main directory where the terminal runs -
templates/
(for HTML templates:index.htmlandresults.html) -
static/plots/
(for saving plots generated during processing)
pip install scikit-learn nltk flask wordcloud gensim
set FLASK_APP=app
set FLASK_ENV=development
flask runOpen your browser and go to http://127.0.0.1:5000/
- Enter your search query and ad keywords on the home page.
- View the top 5 recommended videos, relevance scores, visualizations and download the results as a CSV.
SI final.ipynbThis has the sequential processing of code to generate the outputs and also visualize.
- The application generates a file named recommended_videos.csv in the project folder containing the recommendations.
- Generated plots (relevance score bar chart and keyword clouds) are saved in the static/plots/ directory.