Used web scraping to fetch 4842 recipes from SanjeevKapoor.com. Implemented word2vec and TF-IDF for ingredient parsing and similarity measurement. Provides personalized recipe recommendations based on user-input ingredients using cosine similarity.
Recipe Advisor is a web application that allows users to discover delicious recipes based on the ingredients they have. By leveraging web scraping techniques and advanced NLP models, the app provides personalized recipe recommendations.
- Browse a collection of 4000+ recipes from SanjeevKapoor.com.
- Get personalized recipe recommendations based on user-input ingredients.
- Detailed recipe view with ingredients, method, and other details.
- Pagination for easy navigation through recipes.
-
Clone the repository:
git clone https://github.com/Transcendental-Programmer/Recipe-Advisor-App.git cd Recipe-Advisor-App
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
- Make sure you are in the project directory and the virtual environment is activated.
- Run the Flask application:
python app.py
- Open your web browser and go to
http://127.0.0.1:5000
to access the app.
- Home Page: Provides an introduction and navigation to explore recipes or test the model for personalized recommendations.
- Explore Recipes: Browse through the entire collection of recipes.
- Recipe Details: View detailed information about a specific recipe.
- Test Model: Enter ingredients to get personalized recipe recommendations.
- Web Scraping: BeautifulSoup, Requests
- NLP Models: word2vec, TF-IDF
- Frameworks: Flask, Pandas
- Frontend: HTML, CSS, JavaScript
- Data Storage: CSV files
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes and commit them:
git commit -m "Add new feature"
- Push to the branch:
git push origin feature-branch
- Create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.